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; }