Skip to content

Commit

Permalink
fix: segfault due to logging & console shutdown timing
Browse files Browse the repository at this point in the history
  • Loading branch information
zoogies committed Dec 21, 2024
1 parent dec35df commit 6c3d9f5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions engine/src/engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 467,9 @@ void ye_shutdown_engine(){
// shutdown input
ye_shutdown_input();

// Shutdown console
ye_shutdown_console();

// shutdown logging
// note: must happen before SDL because it relies on SDL path to open file
ye_log_shutdown();
Expand All @@ -488,9 491,4 @@ void ye_shutdown_engine(){

// free all event memory
ye_purge_events(true);

/*
Shutdown console last so we retain logs
*/
ye_shutdown_console();
}

0 comments on commit 6c3d9f5

Please sign in to comment.