[libsocialweb: 5/9] facebook: Fix memory leaks in facebook.



commit 6f58cd910faa235b7589b07981277f947afd3d41
Author: Eitan Isaacson <eitan isaacson collabora co uk>
Date:   Tue Feb 15 18:04:04 2011 -0800

    facebook: Fix memory leaks in facebook.

 services/facebook/facebook.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/services/facebook/facebook.c b/services/facebook/facebook.c
index 84e3e42..2b2bb9c 100644
--- a/services/facebook/facebook.c
+++ b/services/facebook/facebook.c
@@ -562,7 +562,10 @@ _facebook_status_update_update_status (SwStatusUpdateIface   *self,
                          (GObject *)facebook,
                          NULL,
                          NULL);
+
   sw_status_update_iface_return_from_update_status (context);
+
+  g_object_unref (call);
 }
 
 static void
@@ -654,6 +657,7 @@ _upload_file (SwServiceFacebook           *self,
 
   g_free (basename);
   g_free (content_type);
+  g_object_unref (call);
 
   return opid;
 }
@@ -891,6 +895,8 @@ _facebook_collections_get_list (SwCollectionsIface    *self,
                          (GObject *)facebook,
                          context,
                          NULL);
+
+  g_object_unref (call);
 }
 
 static void
@@ -968,6 +974,8 @@ _facebook_collections_create (SwCollectionsIface    *self,
                          (GObject *)facebook,
                          context,
                          NULL);
+
+  g_object_unref (call);
 }
 
 static void
@@ -1017,6 +1025,8 @@ _facebook_collections_get_details (SwCollectionsIface    *self,
                          (GObject *)facebook,
                          context,
                          NULL);
+
+  g_object_unref (call);
 }
 
 static void



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