[gdm] Unref result of g_async_result_get_source_object()
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Unref result of g_async_result_get_source_object()
- Date: Thu, 9 Oct 2014 19:17:22 +0000 (UTC)
commit eab417a368ca267510938f5aab1378080e525839
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Oct 9 12:26:42 2014 -0400
Unref result of g_async_result_get_source_object()
g_async_result_get_source_object() returns a reference that must be
unreferenced.
https://bugzilla.gnome.org/show_bug.cgi?id=738246
libgdm/gdm-client.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgdm/gdm-client.c b/libgdm/gdm-client.c
index b802034..168eabd 100644
--- a/libgdm/gdm-client.c
+++ b/libgdm/gdm-client.c
@@ -105,6 +105,7 @@ on_got_manager (GdmManager *manager,
g_simple_async_result_complete_in_idle (operation_result);
g_object_unref (operation_result);
+ g_object_unref (client);
}
static void
@@ -352,6 +353,7 @@ on_session_opened (GdmManager *manager,
g_simple_async_result_take_error (operation_result, error);
g_simple_async_result_complete_in_idle (operation_result);
g_object_unref (operation_result);
+ g_object_unref (client);
return;
}
@@ -363,6 +365,7 @@ on_session_opened (GdmManager *manager,
(GAsyncReadyCallback)
on_connected,
operation_result);
+ g_object_unref (client);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]