Safe check in dragonbones cleanup.

This commit is contained in:
James Chen
2017-10-09 14:57:40 +08:00
parent f0d2eeb2b3
commit 3ea685f4dc
@@ -420,6 +420,9 @@ bool register_all_dragonbones_manual(se::Object* obj)
// std::string typeName = typeid(*obj).name();
auto cleanup = [=](){
if (!se::ScriptEngine::getInstance()->isValid())
return;
se::AutoHandleScope hs;
se::ScriptEngine::getInstance()->clearException();