History

Merge pull request #9376 from hyperlogic/tablet-ui3

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

Seth Alves committed 9 years ago

Commit 88f3ff72 parents 2d17bb6 1b4146a1 file · +2 −1Browse files

Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/TabletScriptingInterface.cpp+2−1
@@ -283,7 +283,8 @@ SoundEffect::~SoundEffect() { · 282 unmodified lines
283283 _sound->deleteLater();
284284 }
285285 if (_injector) {
286− _injector->deleteLater();
286+ // stop will cause the AudioInjector to delete itself.
287+ _injector->stop();
287288 }
288289 }
289290