mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- free the current level before taking down other things on exit.
Nor doing so can cause memory corruption when the object hierarchy gets deleted later which may still reference some stale data.
This commit is contained in:
parent
d8ccfa1a5f
commit
9e94573ae3
1 changed files with 1 additions and 0 deletions
|
@ -582,6 +582,7 @@ int GameMain()
|
|||
r = -1;
|
||||
}
|
||||
//DeleteScreenJob();
|
||||
if (gi) gi->FreeLevelData();
|
||||
DeinitMenus();
|
||||
if (StatusBar) StatusBar->Destroy();
|
||||
StatusBar = nullptr;
|
||||
|
|
Loading…
Reference in a new issue