Lagrange [work/v1.8]

Fixed potential crash at app shutdown

=> 0e03d8cb971fa4fb0865dcc9a0e25f822d7c8434

diff --git a/src/app.c b/src/app.c
index c2d5b732..8c14c6e6 100644
--- a/src/app.c
+++ b/src/app.c
@@ -444,6 +444,7 @@ static void deinit_App(iApp *d) {
     deinit_CommandLine(&d->args);
     iRelease(d->launchCommands);
     delete_String(d->execPath);
+    iRecycle();
 }
 
 const iString *execPath_App(void) {
diff --git a/src/main.c b/src/main.c
index 2f9eda0e..e2c2cc83 100644
--- a/src/main.c
+++ b/src/main.c
@@ -59,7 +59,6 @@ int main(int argc, char **argv) {
         return -1;
     }
     run_App(argc, argv);
-    iRecycle();
     SDL_Quit();
 #if defined (LAGRANGE_ENABLE_MPG123)
     mpg123_exit();
diff --git a/src/ui/window.c b/src/ui/window.c
index 21338fa8..8aa701e3 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -605,6 +605,7 @@ void init_Window(iWindow *d, iRect rect) {
 }
 
 void deinit_Window(iWindow *d) {
+    iRecycle();
     if (theWindow_ == d) {
         theWindow_ = NULL;
     }
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.8/cdiff/0e03d8cb971fa4fb0865dcc9a0e25f822d7c8434
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
60.368707 milliseconds
Gemini-to-HTML Time
0.137114 milliseconds

This content has been proxied by September (ba2dc).