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:
David Turner 2010-12-29 09:53:58 +00:00
parent fef667cbe9
commit 7bc8fe8ef5

View File

@ -645,8 +645,8 @@ void PCSoundFxPlayer::stop() {
_driver->stopChannel(i);
}
_driver->stopAll();
unload();
}
unload();
}
void PCSoundFxPlayer::fadeOut() {