- fixed a problem with DOS card files under psp/linux
- Added a bunch of SAFE_DELETE, not sure they're really necessary
- fixed a small interface problem in Shop
This commit is contained in:
wagic.the.homebrew
2008-11-30 11:47:47 +00:00
parent f4cb587426
commit 9ec06eb4e7
13 changed files with 31 additions and 35 deletions

View File

@@ -159,26 +159,26 @@ void GameApp::Destroy()
{
if (mGameStates[i]){
mGameStates[i]->Destroy();
delete mGameStates[i];
SAFE_DELETE(mGameStates[i]);
}
}
for (int i= 0; i < 6; i++){
delete Particles[i];
SAFE_DELETE(Particles[i]);
}
if (collection){
collection->destroyAllCards();
delete collection;
SAFE_DELETE(collection);
}
if (cache) delete cache;
SAFE_DELETE(cache);
if (CommonRes) delete CommonRes;
SAFE_DELETE(CommonRes);
GameOptions::Destroy();
GameOptions::Destroy(); //No delete ???
if (Subtypes::subtypesList) delete Subtypes::subtypesList;
if (MtgSets::SetsList) delete MtgSets::SetsList;
SAFE_DELETE(Subtypes::subtypesList);
SAFE_DELETE(MtgSets::SetsList);
SAFE_DELETE(music);