TITANIC: Fix leak of wave file audio streams

This commit is contained in:
Paul Gilbert 2017-09-27 21:11:32 -04:00
parent 9e0f23aabb
commit 4a0a3c121f

View File

@ -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;
}