- 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:
Christoph Oelckers 2021-12-11 14:24:35 +01:00
parent d8ccfa1a5f
commit 9e94573ae3

View file

@ -582,6 +582,7 @@ int GameMain()
r = -1;
}
//DeleteScreenJob();
if (gi) gi->FreeLevelData();
DeinitMenus();
if (StatusBar) StatusBar->Destroy();
StatusBar = nullptr;