mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-16 15:13:55 +00:00
This should resolve leaks and shutdown lua issues
This commit is contained in:
parent
803da509ce
commit
9510e8fbe1
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user