From d99a435c55f3229a6bb577e6be4c0af9e06995f1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 22 Dec 2023 16:38:07 +0900 Subject: Properly deallocate memory on exit Signed-off-by: Michele Calgaro --- src/main.cpp | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index e249247..ac2397e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,20 +47,7 @@ int main( int argc, char *argv[] ) mainWidget->resize( 700, 600 ); - return app.exec(); + int res = app.exec(); + delete mainWidget; + return res; } - - - - - - - - - - - - - - - -- cgit v1.2.3