diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 19:50:14 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-26 19:50:14 -0400 |
| commit | fc3a15956cbdf653ef2e14ac05889801d670cbbf (patch) | |
| tree | a2d14563ff879d032cfd638fd000a4eda4cac5d7 | |
| parent | 4951d01351efc9a296e87cf2999b832d2df0e1e8 (diff) | |
Return the result and also free memory
| -rw-r--r-- | sigmodr/Sigmodr.cpp | 6 |
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; } |
