diff options
Diffstat (limited to 'engines/gob/game.cpp')
-rw-r--r-- | engines/gob/game.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/gob/game.cpp b/engines/gob/game.cpp index 59e2627bd5..9a5825a475 100644 --- a/engines/gob/game.cpp +++ b/engines/gob/game.cpp @@ -95,6 +95,18 @@ Game::Game(GobEngine *vm) : _vm(vm) { } Game::~Game() { + for (int i = 0; i < 5; i++) { + warning("%d", i); + if (_scriptArray[i] != _script) { + warning("DELETE (%d)", _scriptArray[i] != 0); + delete _scriptArray[i]; + } + if (_resourcesArray[i] != _resources) { + warning("DELETE (%d)", _resourcesArray[i] != 0); + delete _resourcesArray[i]; + } + } + delete _script; delete _resources; } |