From 4034cf243dab1e3c1b54cfa894c6ab513a1299b2 Mon Sep 17 00:00:00 2001 From: InviseDivine Date: Sat, 21 Mar 2026 13:43:28 +0200 Subject: [PATCH] FIX: glfw crash when closing the game --- src/main_glfw.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main_glfw.h b/src/main_glfw.h index 213c7ad..2b5bb97 100755 --- a/src/main_glfw.h +++ b/src/main_glfw.h @@ -205,16 +205,16 @@ int main(void) { delete app; - appContext.platform->finish(); - - delete appContext.platform; - #ifndef STANDALONE_SERVER // Exit. glfwDestroyWindow(platform->window); glfwTerminate(); #endif + appContext.platform->finish(); + + delete appContext.platform; + return 0; }