aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-09-08 17:45:17 +0200
committerTorbjörn Andersson2016-09-08 17:45:17 +0200
commitbffc1f87f97ddceb779c4a55ddb57ae42a99e1e1 (patch)
treedb83979ea27c0dad7dd18ce8cf37636ed92f2bf5 /engines/fullpipe
parent7db3902b446cac6eab85e042f7ade953739aeb17 (diff)
downloadscummvm-rg350-bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1.tar.gz
scummvm-rg350-bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1.tar.bz2
scummvm-rg350-bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1.zip
FULLPIPE: Also free the contents of _soundList, along with it
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index c457d24f30..57d0ac5884 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -44,6 +44,8 @@ SoundList::SoundList() {
}
SoundList::~SoundList() {
+ for (int i = 0; i < _soundItemsCount; i++)
+ delete _soundItems[i];
free(_soundItems);
}