FULLPIPE: Fix mismatched malloc/free

This commit is contained in:
Eugene Sandulenko 2016-08-31 21:04:02 +02:00
parent c585b66b36
commit 080bd94f2e

View File

@ -88,10 +88,10 @@ GameLoader::~GameLoader() {
for (uint i = 0; i < _sc2array.size(); i++) {
if (_sc2array[i]._defPicAniInfos)
delete _sc2array[i]._defPicAniInfos;
free(_sc2array[i]._defPicAniInfos);
if (_sc2array[i]._picAniInfos)
delete _sc2array[i]._picAniInfos;
free(_sc2array[i]._picAniInfos);
if (_sc2array[i]._motionController)
delete _sc2array[i]._motionController;