Skip to content

Commit 74d1bb9

Browse files
committed
dbus/properties: fix QDBusPendingCallWatcher leak
1 parent a1d8272 commit 74d1bb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dbus/dbusutil.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ void asyncReadPropertyInternal(
104104
return demarshallVariant(reply.value().variant(), type, slot);
105105
}
106106
});
107+
108+
delete call;
107109
};
108110

109111
QObject::connect(call, &QDBusPendingCallWatcher::finished, &interface, responseCallback);
@@ -231,7 +233,6 @@ void DBusPropertyGroup::updateAllViaGetAll() {
231233
}
232234

233235
delete call;
234-
235236
emit this->getAllFinished();
236237
};
237238

0 commit comments

Comments
 (0)