Skip to content

Commit b890dee

Browse files
pentaflopsbotder
authored andcommitted
Fix memory leak in CLuaManager destructor (PR #1066)
1 parent 742819a commit b890dee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/mods/deathmatch/logic/lua/CLuaManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ CLuaManager::~CLuaManager()
4747
delete (*iter);
4848
}
4949

50+
// Close and remove LVM from memory
51+
ProcessPendingDeleteList();
52+
5053
// Clear the C functions
5154
CLuaCFunctions::RemoveAllFunctions();
5255
}

0 commit comments

Comments
 (0)