mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
appinfo: Don't leak the session bus in launch_default_with_portal_async
The session bus object needs to be unreferenced before early returning.
This commit is contained in:
parent
21f1425e8c
commit
26e0b3dde4
@ -783,6 +783,7 @@ launch_default_with_portal_async (const char *uri,
|
||||
if (real_uri == NULL)
|
||||
{
|
||||
g_task_report_error (context, callback, user_data, NULL, error);
|
||||
g_object_unref (session_bus);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user