From 74d1bb9bc2a92adf78b1dee2122715d396288735 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Mon, 29 Apr 2024 18:32:53 -0700 Subject: [PATCH] dbus/properties: fix QDBusPendingCallWatcher leak --- src/dbus/dbusutil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dbus/dbusutil.cpp b/src/dbus/dbusutil.cpp index 26860b1e..f0b25f45 100644 --- a/src/dbus/dbusutil.cpp +++ b/src/dbus/dbusutil.cpp @@ -104,6 +104,8 @@ void asyncReadPropertyInternal( return demarshallVariant(reply.value().variant(), type, slot); } }); + + delete call; }; QObject::connect(call, &QDBusPendingCallWatcher::finished, &interface, responseCallback); @@ -231,7 +233,6 @@ void DBusPropertyGroup::updateAllViaGetAll() { } delete call; - emit this->getAllFinished(); };