Skip to content

Commit 130a0ce

Browse files
committed
Move SDL_Quit() to after we have finished using it.
1 parent d71eb27 commit 130a0ce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,6 @@ int start_rendering()
392392
LOG_INFO("gl_window_cleanup()");
393393
gl_window_cleanup();
394394

395-
LOG_INFO("SDL_Quit()");
396-
SDL_Quit();
397395
LOG_INFO("cleanup_mem()");
398396
cleanup_mem();
399397
LOG_INFO("xmlCleanupParser()");
@@ -409,6 +407,9 @@ int start_rendering()
409407
final_sound_exit();
410408
#endif
411409

410+
LOG_INFO("SDL_Quit()");
411+
SDL_Quit();
412+
412413
LOG_INFO("exit_logging()");
413414
exit_logging();
414415

0 commit comments

Comments
 (0)