Showing the changes to libraries/script-engine/src/SoundEffect.cpp (1 of 7 files). Show all
Unified · Split
| @@ -5,9 +5,6 @@ · 4 unmodified lines | |||
| 5 | #include <AudioInjector.h> | 5 | #include <AudioInjector.h> |
| 6 | 6 | ||
| 7 | SoundEffect::~SoundEffect() { | 7 | SoundEffect::~SoundEffect() { |
| 8 | if (_sound) { | ||
| 9 | _sound->deleteLater(); | ||
| 10 | } | ||
| 11 | if (_injector) { | 8 | if (_injector) { |
| 12 | // stop will cause the AudioInjector to delete itself. | 9 | // stop will cause the AudioInjector to delete itself. |
| 13 | _injector->stop(); | 10 | _injector->stop(); |