Merge branch 'ptmikheev-master-patch-07827' into 'master'

Do several additional passes of garbage collecting in LuaManager::clear()

See merge request OpenMW/openmw!2672
7220-lua-add-a-general-purpose-lexical-parser
psi29a 2 years ago
commit 613453c799

@ -313,6 +313,8 @@ namespace MWLua
}
mGlobalStorage.clearTemporaryAndRemoveCallbacks();
mPlayerStorage.clearTemporaryAndRemoveCallbacks();
for (int i = 0; i < 5; ++i)
lua_gc(mLua.sol(), LUA_GCCOLLECT, 0);
}
void LuaManager::setupPlayer(const MWWorld::Ptr& ptr)

Loading…
Cancel
Save