mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
SAGA2: Fix various cleanup steps
This commit is contained in:
parent
89b5a59ed0
commit
21316cc286
@ -152,7 +152,7 @@ void cleanupMagic(void) {
|
||||
for (int i = 0; i < maxSpells; i++) {
|
||||
spellBook[i].killEffects();
|
||||
}
|
||||
delete spellBook;
|
||||
delete[] spellBook;
|
||||
|
||||
g_vm->_sdpList->cleanup();
|
||||
g_vm->_edpList->cleanup();
|
||||
|
@ -174,7 +174,7 @@ void SpellDisplayPrototypeList::cleanup(void) {
|
||||
delete spells[i];
|
||||
spells[i] = nullptr;
|
||||
}
|
||||
delete spells;
|
||||
delete[] spells;
|
||||
spells = nullptr;
|
||||
maxCount = 0;
|
||||
}
|
||||
|
@ -1503,9 +1503,6 @@ void cleanupMaps(void) {
|
||||
// Dump all of the tile terrain banks
|
||||
for (i = 0; i < maxBanks; i++) {
|
||||
if (tileBanks[i] != nullptr) {
|
||||
if (tileBanks[i]->_tileArray != nullptr)
|
||||
delete[] tileBanks[i]->_tileArray;
|
||||
|
||||
delete tileBanks[i];
|
||||
tileBanks[i] = nullptr;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user