summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keranen <jaakko.keranen@iki.fi>2020-11-01 13:33:22 +0200
committerJaakko Keranen <jaakko.keranen@iki.fi>2020-11-01 13:33:22 +0200
commit87ac5f3ec193682372c0143bab81dceacf83701f (patch)
tree9cec1f3c8079dbdb5845892615bd110aab16eb33
parentfdf61c1bd7a7c94d8aa2edc77db8b87a99c29963 (diff)
Fixed app cleanup at shutdown
Should clear the garbage before quitting SDL because widgets may be in the garbage and have SDL resources to release.
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index de9132ab..2f9eda0e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,9 +59,11 @@ int main(int argc, char **argv) {
59 return -1; 59 return -1;
60 } 60 }
61 run_App(argc, argv); 61 run_App(argc, argv);
62 iRecycle();
62 SDL_Quit(); 63 SDL_Quit();
63#if defined (LAGRANGE_ENABLE_MPG123) 64#if defined (LAGRANGE_ENABLE_MPG123)
64 mpg123_exit(); 65 mpg123_exit();
65#endif 66#endif
67 deinit_Foundation();
66 return 0; 68 return 0;
67} 69}