summaryrefslogtreecommitdiffstats
path: root/src/app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r--src/app/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 54d305e..1e102d7 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -35,7 +35,10 @@ int main(int argc, char *argv[])
}
if (! app.Create())
- return 0;
+ {
+ app.Destroy(); // ensure a clean exit
+ return 1;
+ }
return app.Run();
}