diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-25 10:52:27 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-25 10:52:27 +0200 |
commit | a9cd61f1baafe09fd20ffb6ba1c6728a8792b344 (patch) | |
tree | a0355e99b105911723b224abe13e32857d5fe42c /common/resourcecontrol.cpp | |
parent | 3cfb5e1485846799572147a3afd95afaa9755ed9 (diff) | |
download | sink-a9cd61f1baafe09fd20ffb6ba1c6728a8792b344.tar.gz sink-a9cd61f1baafe09fd20ffb6ba1c6728a8792b344.zip |
Fixup
Diffstat (limited to 'common/resourcecontrol.cpp')
-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; |