From a9cd61f1baafe09fd20ffb6ba1c6728a8792b344 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 25 Jul 2018 10:52:27 +0200 Subject: Fixup --- common/resourcecontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ResourceControl::shutdown(const QByteArray &identifier) return; } auto guard = new QObject; - QObject::connect(resourceAccess.data(), &ResourceAccess::ready, guard, [&future](bool ready) { + QObject::connect(resourceAccess.data(), &ResourceAccess::ready, guard, [&future, guard](bool ready) { if (!ready) { //Protect against callback getting called twice. delete guard; -- cgit v1.2.3