diff --git a/cocos/editor-support/cocostudio/CCDataReaderHelper.cpp b/cocos/editor-support/cocostudio/CCDataReaderHelper.cpp index 27a1e063c8..5ac46fdcbf 100644 --- a/cocos/editor-support/cocostudio/CCDataReaderHelper.cpp +++ b/cocos/editor-support/cocostudio/CCDataReaderHelper.cpp @@ -2287,8 +2287,7 @@ void DataReaderHelper::decodeNode(BaseData *node, const rapidjson::Value& json, { if (movementBoneData->frameList.size() > 0) { - FrameData *frameData = new (std::nothrow) FrameData(); - frameData = movementBoneData->frameList.at(framesizemusone); + auto frameData = movementBoneData->frameList.at(framesizemusone); movementBoneData->addFrameData(frameData); frameData->release(); frameData->frameID = movementBoneData->duration;