[gnome-online-accounts] daemon: Don't leak the GoaProvider
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] daemon: Don't leak the GoaProvider
- Date: Fri, 29 May 2015 11:24:05 +0000 (UTC)
commit db83b693372e4c54d9131430c4287fa08ada41b0
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 66de3d6..1ecf4a6 100644
--- a/src/daemon/goadaemon.c
+++ b/src/daemon/goadaemon.c
@@ -1177,7 +1177,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)));
@@ -1200,5 +1200,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]