[folks] Bug 645388 — Group channels are leaked



commit 9f457074278f8f8d7e4e3885f2c120ca157ff228
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Apr 12 15:00:38 2011 +0100

    Bug 645388 â?? Group channels are leaked

 NEWS                                 |    3 +++
 backends/telepathy/lib/tp-lowlevel.c |    2 ++
 backends/telepathy/lib/tp-lowlevel.h |    2 +-
 3 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index b53cc8f..fe372a6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
 Overview of changes from libfolks 0.5.0 to libfolks 0.5.1
 =========================================================
 
+Bugs fixed:
+* Bug 645388 â?? Group channels are leaked
+
 Overview of changes from libfolks 0.4.0 to libfolks 0.5.0
 =========================================================
 
diff --git a/backends/telepathy/lib/tp-lowlevel.c b/backends/telepathy/lib/tp-lowlevel.c
index 5516deb..90adefa 100644
--- a/backends/telepathy/lib/tp-lowlevel.c
+++ b/backends/telepathy/lib/tp-lowlevel.c
@@ -644,6 +644,8 @@ iterate_on_channels (TpConnection *conn,
 
     if (callback)
       callback (channel, NULL, cb_obj);
+
+    g_object_unref (channel);
   }
 }
 
diff --git a/backends/telepathy/lib/tp-lowlevel.h b/backends/telepathy/lib/tp-lowlevel.h
index 08f5867..0584930 100644
--- a/backends/telepathy/lib/tp-lowlevel.h
+++ b/backends/telepathy/lib/tp-lowlevel.h
@@ -79,7 +79,7 @@ folks_tp_lowlevel_channel_group_change_membership (TpChannel *channel,
 
 /**
  * FolksTpLowlevelNewGroupChannelsCallback:
- * @channel: (allow-none): the new group #TpChannel
+ * @channel: (allow-none) (transfer none): the new group #TpChannel
  * @result: the #GAsyncResult to finish the async call with
  * @user_data: extra data to pass to the callback
  *



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