mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Free up debug strings when deallocating game-data
This fixes a memory leak, which also occurs in the original game
This commit is contained in:
parent
22b593215f
commit
a5bb4c1874
1 changed files with 5 additions and 1 deletions
|
@ -227,9 +227,13 @@ void G_AllocGameData(void)
|
|||
|
||||
void G_DeAllocGameData(void)
|
||||
{
|
||||
// Initialize debug lines
|
||||
// Free up debug lines
|
||||
G_DeAllocDebugLines();
|
||||
|
||||
// Added in OPM
|
||||
// Free up debug strings
|
||||
G_DeAllocDebugStrings();
|
||||
|
||||
// free up the entities
|
||||
if (g_entities) {
|
||||
gi.Free(g_entities);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue