mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
This should resolve leaks and shutdown lua issues
This commit is contained in:
@@ -228,6 +228,10 @@ LuaParser::LuaParser() {
|
||||
}
|
||||
|
||||
LuaParser::~LuaParser() {
|
||||
// valgrind didn't like when we didn't clean these up :P
|
||||
lua_encounters.clear();
|
||||
lua_encounter_events_registered.clear();
|
||||
lua_encounters_loaded.clear();
|
||||
if(L) {
|
||||
lua_close(L);
|
||||
}
|
||||
|
||||
@@ -560,6 +560,7 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
|
||||
entity_list.Clear();
|
||||
entity_list.RemoveAllEncounters(); // gotta do it manually or rewrite lots of shit :P
|
||||
|
||||
parse->ClearInterfaces();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user