aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2009-02-13 05:32:06 +0000
committerTravis Howell2009-02-13 05:32:06 +0000
commit740ee411b08976587fa47f2b3b5a3709cac00c4b (patch)
treea7c8fb55450d31601bb8bb80b8f311d1168d12b2 /engines/agos
parent01581b24c0a77eba38442ed880ee069b3cd5699a (diff)
downloadscummvm-rg350-740ee411b08976587fa47f2b3b5a3709cac00c4b.tar.gz
scummvm-rg350-740ee411b08976587fa47f2b3b5a3709cac00c4b.tar.bz2
scummvm-rg350-740ee411b08976587fa47f2b3b5a3709cac00c4b.zip
Fix another memory leak, when exiting AGOS engine.
svn-id: r36293
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/agos.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index cc5b7ddd10..63724b01f0 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -913,6 +913,9 @@ AGOSEngine::~AGOSEngine() {
free(_window4BackScn);
free(_window6BackScn);
+ free(_firstTimeStruct);
+ free(_pendingDeleteTimeEvent);
+
free(_variableArray);
free(_variableArray2);
@@ -990,7 +993,6 @@ Common::Error AGOSEngine::go() {
setWindowImage(3, 9900);
while (!shouldQuit())
delay(0);
-
}
if (getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) {