diff options
author | Paul Gilbert | 2012-06-23 16:28:03 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-06-23 16:28:03 +1000 |
commit | 69ce6e35f48491a87886751e9d8cc2d004cf8f7a (patch) | |
tree | 775981082b4f87147dd71c730a3fe901a14af057 | |
parent | 46d87ef76a7e2b7b8c53c4dee2d043192accf159 (diff) | |
download | scummvm-rg350-69ce6e35f48491a87886751e9d8cc2d004cf8f7a.tar.gz scummvm-rg350-69ce6e35f48491a87886751e9d8cc2d004cf8f7a.tar.bz2 scummvm-rg350-69ce6e35f48491a87886751e9d8cc2d004cf8f7a.zip |
TONY: Bugfix for crash when changing scene whilst music is playing
-rw-r--r-- | engines/tony/sound.cpp | 2 |
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 |