mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-15 07:00:58 +00:00
Properly delete renderWorld, soundWorld, and menuSoundWorld on shutdown
This commit is contained in:
parent
87bbebac1c
commit
aa767c360c
1 changed files with 6 additions and 3 deletions
|
@ -1540,15 +1540,18 @@ void idCommonLocal::Shutdown()
|
|||
ImGuiHook::Destroy();
|
||||
|
||||
printf( "delete renderWorld;\n" );
|
||||
delete renderWorld;
|
||||
// SRS - Call FreeRenderWorld() vs. delete, otherwise worlds list not updated on shutdown
|
||||
renderSystem->FreeRenderWorld( renderWorld );
|
||||
renderWorld = NULL;
|
||||
|
||||
printf( "delete soundWorld;\n" );
|
||||
delete 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" );
|
||||
delete 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
|
||||
|
|
Loading…
Reference in a new issue