[glib/glib-2-52] appinfo: Don't leak the session bus in launch_default_with_portal_async
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-52] appinfo: Don't leak the session bus in launch_default_with_portal_async
- Date: Sat, 8 Apr 2017 05:48:13 +0000 (UTC)
commit 50960f80ce164ac7fd82f16e668b79ecbdf36a1e
Author: Mario Sanchez Prada <mario endlessm com>
Date: Thu Mar 23 10:16:35 2017 +0000
appinfo: Don't leak the session bus in launch_default_with_portal_async
The session bus object needs to be unreferenced before early returning.
gio/gappinfo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gappinfo.c b/gio/gappinfo.c
index c64b688..8518d17 100644
--- a/gio/gappinfo.c
+++ b/gio/gappinfo.c
@@ -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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]