[gnome-online-accounts/gnome-3-16] daemon: Don't leak the GoaProvider
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/gnome-3-16] daemon: Don't leak the GoaProvider
- Date: Fri, 29 May 2015 13:31:03 +0000 (UTC)
commit 4e6024084e27cbf0525934b35cdaba430a0f30a8
Author: Debarshi Ray <debarshir gnome org>
Date: Wed May 27 19:01:44 2015 +0200
daemon: Don't leak the GoaProvider
https://bugzilla.gnome.org/show_bug.cgi?id=693578
src/daemon/goadaemon.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/daemon/goadaemon.c b/src/daemon/goadaemon.c
index 7b9ebfb..5d2218d 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -1178,7 +1178,7 @@ on_account_handle_ensure_credentials (GoaAccount *account,
gpointer user_data)
{
GoaDaemon *self = GOA_DAEMON (user_data);
- GoaProvider *provider;
+ GoaProvider *provider = NULL;
GoaObject *object;
object = GOA_OBJECT (g_dbus_interface_get_object (G_DBUS_INTERFACE (account)));
@@ -1201,5 +1201,6 @@ on_account_handle_ensure_credentials (GoaAccount *account,
ensure_data_new (self, object, invocation));
out:
+ g_clear_object (&provider);
return TRUE; /* invocation was handled */
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]