Showing the changes to libraries/script-engine/src/ScriptAudioInjector.cpp (1 of 4 files). Show all
Unified · Split
| @@ -29,6 +29,11 @@ ScriptAudioInjector::ScriptAudioInjector(AudioInjector* injector) : · 28 unmodified lines | ||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | ScriptAudioInjector::~ScriptAudioInjector() { |
| 32 | + if (!_injector.isNull()) { | |
| 33 | + // we've been asked to delete after finishing, trigger a queued deleteLater here | |
| 34 | + QMetaObject::invokeMethod(_injector.data(), "triggerDeleteAfterFinish", Qt::QueuedConnection); | |
| 35 | + } | |
| 36 | + | |
| 32 | 37 | } |
| 33 | 38 | |
| 34 | 39 | void ScriptAudioInjector::stopInjectorImmediately() { |