mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-13 07:31:04 +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");
|
auto hexfont = resf->FindLump("newconsolefont.hex");
|
||||||
if (hexfont == nullptr) I_FatalError("Unable to find newconsolefont.hex in %s", filename);
|
if (hexfont == nullptr) I_FatalError("Unable to find newconsolefont.hex in %s", filename);
|
||||||
hexdata.ParseDefinition(hexfont);
|
hexdata.ParseDefinition(hexfont);
|
||||||
|
delete resf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -372,7 +372,9 @@ void FLevelLocals::ClearLevelData(bool fullgc)
|
||||||
Behaviors.UnloadModules();
|
Behaviors.UnloadModules();
|
||||||
localEventManager->Shutdown();
|
localEventManager->Shutdown();
|
||||||
if (aabbTree) delete aabbTree;
|
if (aabbTree) delete aabbTree;
|
||||||
|
if (levelMesh) delete levelMesh;
|
||||||
aabbTree = nullptr;
|
aabbTree = nullptr;
|
||||||
|
levelMesh = nullptr;
|
||||||
if (screen)
|
if (screen)
|
||||||
screen->SetAABBTree(nullptr);
|
screen->SetAABBTree(nullptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue