Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -286,7 +286,8 @@ SoundEffect::~SoundEffect() { · 285 unmodified lines | ||
| 286 | 286 | _sound->deleteLater(); |
| 287 | 287 | } |
| 288 | 288 | if (_injector) { |
| 289 | − _injector->deleteLater(); | |
| 289 | + // stop will cause the AudioInjector to delete itself. | |
| 290 | + _injector->stop(); | |
| 290 | 291 | } |
| 291 | 292 | } |
| 292 | 293 | |