diff options
author | Michele Calgaro <[email protected]> | 2023-12-22 16:38:07 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-12-22 16:38:07 +0900 |
commit | d99a435c55f3229a6bb577e6be4c0af9e06995f1 (patch) | |
tree | 2ae66c619c773aa59915ddf52c39b0a7788f0cb2 /src/main.cpp | |
parent | 0d4db05e52daaf999aa78bab91671c83644398e3 (diff) | |
download | kstreamripper-d99a435c55f3229a6bb577e6be4c0af9e06995f1.tar.gz kstreamripper-d99a435c55f3229a6bb577e6be4c0af9e06995f1.zip |
Properly deallocate memory on exit
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 19 |
1 files changed, 3 insertions, 16 deletions
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; } - - - - - - - - - - - - - - - |