mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
WAGE: Clean up world on exit
This commit is contained in:
parent
fdfb4eedcd
commit
ac0be3401c
@ -73,7 +73,17 @@ World::World(WageEngine *engine) {
|
||||
}
|
||||
|
||||
World::~World() {
|
||||
delete _storageScene;
|
||||
for (uint i = 0; i < _orderedObjs.size(); i++)
|
||||
delete _orderedObjs[i];
|
||||
|
||||
for (uint i = 0; i < _orderedChrs.size(); i++)
|
||||
delete _orderedChrs[i];
|
||||
|
||||
for (uint i = 0; i < _orderedSounds.size(); i++)
|
||||
delete _orderedSounds[i];
|
||||
|
||||
for (uint i = 0; i < _orderedScenes.size(); i++)
|
||||
delete _orderedScenes[i];
|
||||
}
|
||||
|
||||
bool World::loadWorld(Common::MacResManager *resMan) {
|
||||
|
Loading…
Reference in New Issue
Block a user