mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3894 from rablwupei/spine_leak
[ci skip]fix memory leak in spine
This commit is contained in:
commit
289dc7d897
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -240,7 +240,7 @@ SkeletonData* SkeletonJson_readSkeletonDataFile (SkeletonJson* self, const char*
|
|||
return 0;
|
||||
}
|
||||
skeletonData = SkeletonJson_readSkeletonData(self, json);
|
||||
FREE(json);
|
||||
delete [] json;
|
||||
return skeletonData;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue