[gnome-online-accounts] live: Don't leak the GoaDocuments



commit 4d80e3503b4b0ae4e379f6e14da562087c58d798
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Apr 23 14:53:17 2014 +0200

    live: Don't leak the GoaDocuments
    
    Fixes: https://bugzilla.gnome.org/728787

 src/goabackend/goawindowsliveprovider.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goawindowsliveprovider.c b/src/goabackend/goawindowsliveprovider.c
index 05388df..d3d8ff2 100644
--- a/src/goabackend/goawindowsliveprovider.c
+++ b/src/goabackend/goawindowsliveprovider.c
@@ -314,6 +314,7 @@ build_object (GoaProvider         *provider,
 
   account = NULL;
   mail = NULL;
+  documents = NULL;
 
   /* Chain up */
   if (!GOA_PROVIDER_CLASS (goa_windows_live_provider_parent_class)->build_object (provider,
@@ -394,6 +395,7 @@ build_object (GoaProvider         *provider,
   ret = TRUE;
 
  out:
+  g_clear_object (&documents);
   g_clear_object (&mail);
   if (account != NULL)
     g_object_unref (account);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]