mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
module-portal: don't leak dbus error
This commit is contained in:
parent
d4fc918737
commit
a6c35d1df4
1 changed files with 3 additions and 2 deletions
|
|
@ -140,8 +140,9 @@ static void on_portal_pid_received(DBusPendingCall *pending,
|
||||||
|
|
||||||
if (dbus_error_is_set(&error)) {
|
if (dbus_error_is_set(&error)) {
|
||||||
impl->portal_pid = 0;
|
impl->portal_pid = 0;
|
||||||
}
|
pw_log_warn("Could not get portal pid: %s", error.message);
|
||||||
else {
|
dbus_error_free(&error);
|
||||||
|
} else {
|
||||||
pw_log_info("Got portal pid %d", portal_pid);
|
pw_log_info("Got portal pid %d", portal_pid);
|
||||||
impl->portal_pid = portal_pid;
|
impl->portal_pid = portal_pid;
|
||||||
impl->first = true;
|
impl->first = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue