This commit is contained in:
Robert Beckebans 2021-09-11 13:02:59 +02:00
parent 6510531ad8
commit 80c48e3895
2 changed files with 7 additions and 7 deletions

View file

@ -48,7 +48,7 @@ struct gameReturn_t
{
gameReturn_t() :
sessionCommand( "" ), // SRS - Explicitly init sessionCommand otherwise can be optimized out and skipped with gcc or Apple clang
sessionCommand( "" ), // SRS - Explicitly init sessionCommand otherwise can be optimized out and skipped with gcc or Apple clang
syncNextGameFrame( false ),
vibrationLow( 0 ),
vibrationHigh( 0 )

View file

@ -1540,18 +1540,18 @@ void idCommonLocal::Shutdown()
ImGuiHook::Destroy();
printf( "delete renderWorld;\n" );
// SRS - Call FreeRenderWorld() vs. delete, otherwise worlds list not updated on shutdown
renderSystem->FreeRenderWorld( renderWorld );
// SRS - Call FreeRenderWorld() vs. delete, otherwise worlds list not updated on shutdown
renderSystem->FreeRenderWorld( renderWorld );
renderWorld = NULL;
printf( "delete soundWorld;\n" );
// SRS - Call FreeSoundWorld() vs. delete, otherwise soundWorlds list not updated and can segfault in soundSystem->Shutdown()
soundSystem->FreeSoundWorld( soundWorld );
// SRS - Call FreeSoundWorld() vs. delete, otherwise soundWorlds list not updated and can segfault in soundSystem->Shutdown()
soundSystem->FreeSoundWorld( soundWorld );
soundWorld = NULL;
printf( "delete menuSoundWorld;\n" );
// SRS - Call FreeSoundWorld() vs. delete, otherwise soundWorlds list not updated and can segfault in soundSystem->Shutdown()
soundSystem->FreeSoundWorld( menuSoundWorld );
// SRS - Call FreeSoundWorld() vs. delete, otherwise soundWorlds list not updated and can segfault in soundSystem->Shutdown()
soundSystem->FreeSoundWorld( menuSoundWorld );
menuSoundWorld = NULL;
// shut down the session