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)
|
if (movementBoneData->frameList.size() > 0)
|
||||||
{
|
{
|
||||||
FrameData *frameData = new (std::nothrow) FrameData();
|
auto frameData = movementBoneData->frameList.at(framesizemusone);
|
||||||
frameData = movementBoneData->frameList.at(framesizemusone);
|
|
||||||
movementBoneData->addFrameData(frameData);
|
movementBoneData->addFrameData(frameData);
|
||||||
frameData->release();
|
frameData->release();
|
||||||
frameData->frameID = movementBoneData->duration;
|
frameData->frameID = movementBoneData->duration;
|
||||||
|
|
Loading…
Reference in New Issue