mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04: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)) {
|
||||
impl->portal_pid = 0;
|
||||
}
|
||||
else {
|
||||
pw_log_warn("Could not get portal pid: %s", error.message);
|
||||
dbus_error_free(&error);
|
||||
} else {
|
||||
pw_log_info("Got portal pid %d", portal_pid);
|
||||
impl->portal_pid = portal_pid;
|
||||
impl->first = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue