aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2008-05-22 14:25:27 +0000
committerSven Hesse2008-05-22 14:25:27 +0000
commita70d37009a097a988992e3ba924b595c6d1289e5 (patch)
treedae9b57a1cbb9a766b4f8adefd38990d79aeef7d /engines
parentabe87559bc6e70376ccd4d0565a9976966d77a3f (diff)
downloadscummvm-rg350-a70d37009a097a988992e3ba924b595c6d1289e5.tar.gz
scummvm-rg350-a70d37009a097a988992e3ba924b595c6d1289e5.tar.bz2
scummvm-rg350-a70d37009a097a988992e3ba924b595c6d1289e5.zip
Correctly delete'ing CDROM and Backgroundatmosphere, fixing segfaults on machines slower than mine (thanks, LordHoto ;))
svn-id: r32210
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/sound/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/gob/sound/sound.cpp b/engines/gob/sound/sound.cpp
index 79fe5acb56..a90afe0e27 100644
--- a/engines/gob/sound/sound.cpp
+++ b/engines/gob/sound/sound.cpp
@@ -56,6 +56,8 @@ Sound::~Sound() {
delete _blaster;
delete _adlib;
delete _infogrames;
+ delete _cdrom;
+ delete _bgatmos;
for (int i = 0; i < kSoundsCount; i++)
_sounds[i].free();