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
1 changed files with 2 additions and 1 deletions

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