1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-30 10:34:32 +00:00

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

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

See merge request OpenMW/openmw!2672
This commit is contained in:
psi29a 2023-01-31 13:22:37 +00:00
commit 613453c799

View file

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