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:
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…
Reference in New Issue
Block a user