diff options
author | Torbjörn Andersson | 2016-09-08 17:45:17 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2016-09-08 17:45:17 +0200 |
commit | bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1 (patch) | |
tree | db83979ea27c0dad7dd18ce8cf37636ed92f2bf5 | |
parent | 7db3902b446cac6eab85e042f7ade953739aeb17 (diff) | |
download | scummvm-rg350-bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1.tar.gz scummvm-rg350-bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1.tar.bz2 scummvm-rg350-bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1.zip |
FULLPIPE: Also free the contents of _soundList, along with it
-rw-r--r-- | engines/fullpipe/sound.cpp | 2 |
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); } |