aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTravis Howell2004-02-08 14:02:43 +0000
committerTravis Howell2004-02-08 14:02:43 +0000
commita745b3a7d0fe1080e421e3ed3ef26cbdc7919fb6 (patch)
tree6a9bc409db391132ac8673aee5e2e988c084c29c /sword2
parent30189c2a2033cd0b28ac8583fbca3152c370177d (diff)
downloadscummvm-rg350-a745b3a7d0fe1080e421e3ed3ef26cbdc7919fb6.tar.gz
scummvm-rg350-a745b3a7d0fe1080e421e3ed3ef26cbdc7919fb6.tar.bz2
scummvm-rg350-a745b3a7d0fe1080e421e3ed3ef26cbdc7919fb6.zip
More cutscene fixes from roever
svn-id: r12773
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/animation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sword2/driver/animation.cpp b/sword2/driver/animation.cpp
index 71f4effb98..3517d87fc6 100644
--- a/sword2/driver/animation.cpp
+++ b/sword2/driver/animation.cpp
@@ -47,8 +47,10 @@ AnimationState::~AnimationState() {
delete sndfile;
#ifndef BACKEND_8BIT
_vm->_system->hide_overlay();
- delete overlay;
+ free(overlay);
#endif
+ if (bgSoundStream)
+ delete bgSoundStream;
#endif
}
@@ -142,7 +144,7 @@ bool AnimationState::init(const char *name) {
sprintf(tempFile, "%s.ogg", name);
if (sndfile->open(tempFile)) {
bgSoundStream = makeVorbisStream(sndfile, sndfile->size());
- _vm->_mixer->playInputStream(&bgSound, bgSoundStream, false, 255, 0, -1);
+ _vm->_mixer->playInputStream(&bgSound, bgSoundStream, false, 255, 0, -1, false);
}
#endif