diff options
author | Strangerke | 2013-01-05 12:12:40 +0100 |
---|---|---|
committer | Strangerke | 2013-01-05 12:12:40 +0100 |
commit | 907d705c1e725e5df0a7a4b378d0c237f1df2961 (patch) | |
tree | c7fe3c7ef5e1ff890afa3ef037d8ceb3561d3837 /engines | |
parent | 3ee199ad7a4cbd4b70064f3546c26e4cc0f4a8db (diff) | |
download | scummvm-rg350-907d705c1e725e5df0a7a4b378d0c237f1df2961.tar.gz scummvm-rg350-907d705c1e725e5df0a7a4b378d0c237f1df2961.tar.bz2 scummvm-rg350-907d705c1e725e5df0a7a4b378d0c237f1df2961.zip |
HOPKINS: (on Behalf of Eriktorbjorn) dispose music after use in order to avoid a memory leak
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hopkins/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp index 65619bee69..1925bac1b3 100644 --- a/engines/hopkins/sound.cpp +++ b/engines/hopkins/sound.cpp @@ -141,12 +141,12 @@ protected: Common::File *file = new Common::File(); if (file->open(filename + ".APC")) { - _cueStream = Audio::makeAPCStream(file, DisposeAfterUse::NO); + _cueStream = Audio::makeAPCStream(file, DisposeAfterUse::YES); return true; } if (file->open(filename + ".WAV")) { - _cueStream = Audio::makeWAVStream(file, DisposeAfterUse::NO); + _cueStream = Audio::makeWAVStream(file, DisposeAfterUse::YES); return true; } |