mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- fixed two memory leaks.
This commit is contained in:
parent
169139c22c
commit
e8d7e0227b
2 changed files with 3 additions and 0 deletions
|
@ -443,4 +443,5 @@ void LoadHexFont(const char* filename)
|
|||
auto hexfont = resf->FindLump("newconsolefont.hex");
|
||||
if (hexfont == nullptr) I_FatalError("Unable to find newconsolefont.hex in %s", filename);
|
||||
hexdata.ParseDefinition(hexfont);
|
||||
delete resf;
|
||||
}
|
||||
|
|
|
@ -372,7 +372,9 @@ void FLevelLocals::ClearLevelData(bool fullgc)
|
|||
Behaviors.UnloadModules();
|
||||
localEventManager->Shutdown();
|
||||
if (aabbTree) delete aabbTree;
|
||||
if (levelMesh) delete levelMesh;
|
||||
aabbTree = nullptr;
|
||||
levelMesh = nullptr;
|
||||
if (screen)
|
||||
screen->SetAABBTree(nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue