fix memory leak

This commit is contained in:
rablwupei 2013-10-08 20:03:10 +08:00
parent a92db78c11
commit 5ea249a265
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;
}