mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-29 13:16:18 +00:00
TITANIC: Fix leak of wave file audio streams
This commit is contained in:
parent
9e0f23aabb
commit
4a0a3c121f
@ -207,7 +207,7 @@ Audio::SoundHandle CWaveFile::play(int numLoops, byte volume) {
|
||||
(numLoops == -1) ? 0 : numLoops);
|
||||
|
||||
_mixer->playStream(_soundType, &handle, stream, -1,
|
||||
volume, 0, DisposeAfterUse::NO);
|
||||
volume, 0, DisposeAfterUse::YES);
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user