aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-06-23 16:28:03 +1000
committerPaul Gilbert2012-06-23 16:28:03 +1000
commit69ce6e35f48491a87886751e9d8cc2d004cf8f7a (patch)
tree775981082b4f87147dd71c730a3fe901a14af057 /engines
parent46d87ef76a7e2b7b8c53c4dee2d043192accf159 (diff)
downloadscummvm-rg350-69ce6e35f48491a87886751e9d8cc2d004cf8f7a.tar.gz
scummvm-rg350-69ce6e35f48491a87886751e9d8cc2d004cf8f7a.tar.bz2
scummvm-rg350-69ce6e35f48491a87886751e9d8cc2d004cf8f7a.zip
TONY: Bugfix for crash when changing scene whilst music is playing
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/sound.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tony/sound.cpp b/engines/tony/sound.cpp
index 31e008eb62..7380b3a93a 100644
--- a/engines/tony/sound.cpp
+++ b/engines/tony/sound.cpp
@@ -536,6 +536,8 @@ bool FPStream::unloadFile() {
/* Closes the file handle stream */
delete _loopStream;
delete _rewindableStream;
+ _loopStream = NULL;
+ _rewindableStream = NULL;
_file.close();
// Flag that the file is no longer in memory