[gnome-online-accounts] owncloud: Fix 'documents' leak in ::build_object()



commit 0b32f06986c7a2764de8729ccb5d72ce9c0411ac
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Sun May 3 11:13:22 2015 +0200

    owncloud: Fix 'documents' leak in ::build_object()
    
    Similarly to the calendar, contacts, files objects, 'documents' needs to
    be unref'ed when no longer needed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752939

 src/goabackend/goaowncloudprovider.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
index ad9c89a..86d8234 100644
--- a/src/goabackend/goaowncloudprovider.c
+++ b/src/goabackend/goaowncloudprovider.c
@@ -319,6 +319,7 @@ build_object (GoaProvider         *provider,
  out:
   g_clear_object (&calendar);
   g_clear_object (&contacts);
+  g_clear_object (&documents);
   g_clear_object (&files);
   g_clear_object (&password_based);
   g_clear_pointer (&uri, (GDestroyNotify *) soup_uri_free);


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