aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorChristopher Page2008-06-12 19:34:32 +0000
committerChristopher Page2008-06-12 19:34:32 +0000
commitad99e9b24989719b0da35e4162ea57982fd89a0a (patch)
tree2d6293f6dad386924bc103e62438a1fdf274c53e /engines
parent101105315e2c036c6edc2c5f2932eac8837fe14a (diff)
downloadscummvm-rg350-ad99e9b24989719b0da35e4162ea57982fd89a0a.tar.gz
scummvm-rg350-ad99e9b24989719b0da35e4162ea57982fd89a0a.tar.bz2
scummvm-rg350-ad99e9b24989719b0da35e4162ea57982fd89a0a.zip
AGOS: Fixed a memory leak in the AGOS engine
svn-id: r32679
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/agos.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index 7880d407b8..365f9fcde7 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -37,6 +37,7 @@
#include "sound/mididrv.h"
#include "sound/mods/protracker.h"
+#include "sound/audiocd.h"
using Common::File;
@@ -882,6 +883,8 @@ AGOSEngine::~AGOSEngine() {
_midi.close();
delete _driver;
+ AudioCD.destroy();
+
for (uint i = 0; i < _itemHeap.size(); i++) {
delete[] _itemHeap[i];
}