forked from quickshell/quickshell
dbus/properties: fix QDBusPendingCallWatcher leak
This commit is contained in:
parent
a1d82729bc
commit
74d1bb9bc2
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue