Fix memory leak in DataReaderHelper

This commit is contained in:
mogemimi 2016-04-07 02:22:06 +09:00
parent b712293e9b
commit 7ec409c3bb
1 changed files with 1 additions and 2 deletions

View File

@ -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;