mirror of https://github.com/axmolengine/axmol.git
Fix memory leak in DataReaderHelper
This commit is contained in:
parent
b712293e9b
commit
7ec409c3bb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue