Merge pull request #9376 from hyperlogic/tablet-ui3

Prevent crash when closing the tablet while a sound is playing.
This commit is contained in:
Seth Alves 2017-01-12 18:17:53 -08:00 committed by GitHub
commit 88f3ff7977

View file

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