mirror of https://github.com/axmolengine/axmol.git
closed #3833: SceneTest of CocoStudio crashes
This commit is contained in:
parent
3d113e1709
commit
c6e7093270
|
@ -144,10 +144,10 @@ Node* SceneReader::createObject(const rapidjson::Value &dict, cocos2d::Node* par
|
|||
{
|
||||
gb->addComponent(com);
|
||||
}
|
||||
else
|
||||
{
|
||||
CC_SAFE_RELEASE_NULL(com);
|
||||
}
|
||||
else
|
||||
{
|
||||
com = nullptr;
|
||||
}
|
||||
}
|
||||
if(_fnSelector != nullptr)
|
||||
{
|
||||
|
|
|
@ -178,7 +178,6 @@ void TriggerObj::serialize(const rapidjson::Value &val)
|
|||
CCASSERT(con != nullptr, "");
|
||||
con->serialize(subDict);
|
||||
con->init();
|
||||
con->autorelease();
|
||||
_cons.pushBack(con);
|
||||
}
|
||||
|
||||
|
@ -199,7 +198,6 @@ void TriggerObj::serialize(const rapidjson::Value &val)
|
|||
}
|
||||
act->serialize(subDict);
|
||||
act->init();
|
||||
act->autorelease();
|
||||
_acts.pushBack(act);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue