mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 10:11:37 +00:00
This should resolve leaks and shutdown lua issues
This commit is contained in:
@@ -228,6 +228,10 @@ LuaParser::LuaParser() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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) {
|
if(L) {
|
||||||
lua_close(L);
|
lua_close(L);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -560,6 +560,7 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
entity_list.Clear();
|
entity_list.Clear();
|
||||||
|
entity_list.RemoveAllEncounters(); // gotta do it manually or rewrite lots of shit :P
|
||||||
|
|
||||||
parse->ClearInterfaces();
|
parse->ClearInterfaces();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user