mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
Clear pool when restart
This commit is contained in:
@@ -888,6 +888,8 @@ void ScriptingCore::cleanup()
|
||||
localStorageFree();
|
||||
removeAllRoots(_cx);
|
||||
garbageCollect();
|
||||
|
||||
PoolManager::getInstance()->getCurrentPool()->clear();
|
||||
|
||||
if (_js_log_buf) {
|
||||
free(_js_log_buf);
|
||||
|
||||
Reference in New Issue
Block a user