summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-26 19:50:14 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-26 19:50:14 -0400
commitfc3a15956cbdf653ef2e14ac05889801d670cbbf (patch)
treea2d14563ff879d032cfd638fd000a4eda4cac5d7
parent4951d01351efc9a296e87cf2999b832d2df0e1e8 (diff)
Return the result and also free memory
-rw-r--r--sigmodr/Sigmodr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sigmodr/Sigmodr.cpp b/sigmodr/Sigmodr.cpp
index e0d4faa8..a1b45164 100644
--- a/sigmodr/Sigmodr.cpp
+++ b/sigmodr/Sigmodr.cpp
@@ -79,6 +79,8 @@ int main(int argc, char* argv[])
SigmodrUI* mainWindow = new SigmodrUI;
mainWindow->show();
- app->exec();
- return 0;
+ int result = app->exec();
+
+ delete app;
+ return result;
}