diff options
-rw-r--r-- | common/resourcecontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/resourcecontrol.cpp b/common/resourcecontrol.cpp index 437bf4b..5e8e09a 100644 --- a/common/resourcecontrol.cpp +++ b/common/resourcecontrol.cpp | |||
@@ -58,7 +58,7 @@ KAsync::Job<void> ResourceControl::shutdown(const QByteArray &identifier) | |||
58 | return; | 58 | return; |
59 | } | 59 | } |
60 | auto guard = new QObject; | 60 | auto guard = new QObject; |
61 | QObject::connect(resourceAccess.data(), &ResourceAccess::ready, guard, [&future](bool ready) { | 61 | QObject::connect(resourceAccess.data(), &ResourceAccess::ready, guard, [&future, guard](bool ready) { |
62 | if (!ready) { | 62 | if (!ready) { |
63 | //Protect against callback getting called twice. | 63 | //Protect against callback getting called twice. |
64 | delete guard; | 64 | delete guard; |