[gnome-online-accounts/gnome-3-16] daemon: Fix leak in process_config_entries
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-16] daemon: Fix leak in process_config_entries
- Date: Wed, 9 Sep 2015 12:38:53 +0000 (UTC)
commit 5e2364d512bff8447bca2328b29052918c69c3b2
Author: Christophe Fergeau <cfergeau redhat com>
Date: Mon Jul 27 23:22:17 2015 +0200
daemon: Fix leak in process_config_entries
The object returned by g_dbus_object_manager_get_object() must be
unref'ed when no longer needed.
https://bugzilla.gnome.org/show_bug.cgi?id=752939
src/daemon/goadaemon.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index d991e90..0cc83aa 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -634,6 +634,7 @@ process_config_entries (GoaDaemon *self,
g_signal_handlers_disconnect_by_func (goa_object_peek_account (object),
G_CALLBACK (on_account_handle_remove),
self);
+ g_object_unref (object);
g_debug ("removing %s", object_path);
g_warn_if_fail (g_dbus_object_manager_server_unexport (self->object_manager, object_path));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]