mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 17:29:11 +00:00
CINE: Fix Memory Leak in PCSoundFxPlayer.
Found this using Valgrind when loading a Future Wars savegame from the launcher. Occurs since the load() method called stop() but this did not unload() the allocated playing resource data unless it was still playing. Fixed in stop() by calling unload() in all cases. svn-id: r55059
This commit is contained in:
parent
fef667cbe9
commit
7bc8fe8ef5
@ -645,8 +645,8 @@ void PCSoundFxPlayer::stop() {
|
||||
_driver->stopChannel(i);
|
||||
}
|
||||
_driver->stopAll();
|
||||
unload();
|
||||
}
|
||||
unload();
|
||||
}
|
||||
|
||||
void PCSoundFxPlayer::fadeOut() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user