History

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

Anthony J. Thibault committed 9 years ago

Commit 1b4146a1 parent 0746d381 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
@@ -286,7 +286,8 @@ SoundEffect::~SoundEffect() { · 285 unmodified lines
286 _sound->deleteLater();286 _sound->deleteLater();
287 }287 }
288 if (_injector) {288 if (_injector) {
289 _injector->deleteLater();289 // stop will cause the AudioInjector to delete itself.
290 _injector->stop();
290 }291 }
291}292}
292 293