Prevent crash when closing the tablet while a sound is playing.

This commit is contained in:
Anthony J. Thibault 2017-01-12 17:23:06 -08:00
parent 0746d38cae
commit 1b4146af6d

View file

@ -286,7 +286,8 @@ SoundEffect::~SoundEffect() {
_sound->deleteLater();
}
if (_injector) {
_injector->deleteLater();
// stop will cause the AudioInjector to delete itself.
_injector->stop();
}
}