dbus/properties: fix QDBusPendingCallWatcher leak

This commit is contained in:
outfoxxed 2024-04-29 18:32:53 -07:00
parent a1d82729bc
commit 74d1bb9bc2
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -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();
};