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:
smallmodel 2025-02-18 20:43:03 +01:00
parent 22b593215f
commit a5bb4c1874
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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);