1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 03:39:14 +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();
mPlayerStorage.clearTemporaryAndRemoveCallbacks();
for (int i = 0; i < 5; ++i)
lua_gc(mLua.sol(), LUA_GCCOLLECT, 0);
}
void LuaManager::setupPlayer(const MWWorld::Ptr& ptr)