From 24a22fb3747650e9721b95ede3ee55e9df747f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 16 Jan 2018 16:54:10 +0100 Subject: [PATCH] [apps/calculation] Delete layout when unloading view. Change-Id: I7c7afc4882051266c04f28cf2823d58c803f05c0 --- apps/calculation/edit_expression_controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/calculation/edit_expression_controller.cpp b/apps/calculation/edit_expression_controller.cpp index 3bc7054b9..93f3b906a 100644 --- a/apps/calculation/edit_expression_controller.cpp +++ b/apps/calculation/edit_expression_controller.cpp @@ -199,6 +199,7 @@ View * EditExpressionController::loadView() { } void EditExpressionController::unloadView(View * view) { + delete expressionLayout(); delete view; }