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:
Mario Sanchez Prada 2017-03-23 10:16:35 +00:00
parent 21f1425e8c
commit 26e0b3dde4

View File

@ -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;
}
}