mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-18 22:58:54 +02: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:
@@ -783,6 +783,7 @@ launch_default_with_portal_async (const char *uri,
|
|||||||
if (real_uri == NULL)
|
if (real_uri == NULL)
|
||||||
{
|
{
|
||||||
g_task_report_error (context, callback, user_data, NULL, error);
|
g_task_report_error (context, callback, user_data, NULL, error);
|
||||||
|
g_object_unref (session_bus);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user