Skip to content

Commit

Permalink
FULLPIPE: Implement GameLoader::~GameLoader()
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jun 13, 2014
1 parent de01a09 commit 96065c7
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion engines/fullpipe/gameloader.cpp
Expand Up @@ -84,7 +84,34 @@ GameLoader::~GameLoader() {
delete _interactionController;
delete _inputController;

warning("STUB: GameLoader::~GameLoader()");
g_fp->_gameLoader = 0;

for (uint i = 0; i < _sc2array.size(); i++) {
if (_sc2array[i]._defPicAniInfos)
delete _sc2array[i]._defPicAniInfos;

if (_sc2array[i]._picAniInfos)
delete _sc2array[i]._picAniInfos;

if (_sc2array[i]._motionController)
delete _sc2array[i]._motionController;

if (_sc2array[i]._data1)
free(_sc2array[i]._data1);

if (_sc2array[i]._entranceData)
free(_sc2array[i]._entranceData);
}

delete _gameVar;
_gameVar = 0;

if (g_fp->_globalPalette) {
free(g_fp->_globalPalette);
g_fp->_globalPalette = 0;
}

_sc2array.clear();
}

bool GameLoader::load(MfcArchive &file) {
Expand Down

0 comments on commit 96065c7

Please sign in to comment.