Merge pull request #3894 from rablwupei/spine_leak

[ci skip]fix memory leak in spine
This commit is contained in:
minggo 2013-10-08 20:25:02 -07:00
commit 289dc7d897
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ Atlas* Atlas_readAtlasFile (const char* path) {
data = _Util_readFile(path, &length);
if (data) atlas = Atlas_readAtlas(data, length, dir);
FREE(data);
delete [] data;
FREE(dir);
return atlas;
}

View File

@ -240,7 +240,7 @@ SkeletonData* SkeletonJson_readSkeletonDataFile (SkeletonJson* self, const char*
return 0;
}
skeletonData = SkeletonJson_readSkeletonData(self, json);
FREE(json);
delete [] json;
return skeletonData;
}