aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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