aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorChristopher Page2008-05-24 00:08:13 +0000
committerChristopher Page2008-05-24 00:08:13 +0000
commite41bd1eae8a15ea28237b090a833b94ca68c39ad (patch)
treea6bc23dd34fe419bb02cf367bef42744cc111419 /engines
parent9e4115a3bf5c2d2004f5876a5c9b6b62c2706630 (diff)
downloadscummvm-rg350-e41bd1eae8a15ea28237b090a833b94ca68c39ad.tar.gz
scummvm-rg350-e41bd1eae8a15ea28237b090a833b94ca68c39ad.tar.bz2
scummvm-rg350-e41bd1eae8a15ea28237b090a833b94ca68c39ad.zip
AGI: Fixed two memory leaks when returning to launcher from AGI Engine
svn-id: r32236
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/agi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index 81aec3e351..3e0987bc18 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -766,12 +766,15 @@ AgiEngine::~AgiEngine() {
}
agiDeinit();
+ delete _loader;
_sound->deinitSound();
delete _sound;
_gfx->deinitVideo();
delete _sprites;
+ delete _picture;
free(_game.sbufOrig);
_gfx->deinitMachine();
+ delete _gfx;
delete _rnd;
delete _console;