[Telepathy-commits] [telepathy-salut/master] src/salut-roomlist-manager.c: Close roomlist channel correctly

Alban Crequy alban.crequy at collabora.co.uk
Wed Nov 12 11:44:38 PST 2008


---
 src/salut-roomlist-manager.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/salut-roomlist-manager.c b/src/salut-roomlist-manager.c
index 5a82eb7..4cd5eb1 100644
--- a/src/salut-roomlist-manager.c
+++ b/src/salut-roomlist-manager.c
@@ -148,7 +148,13 @@ salut_roomlist_manager_close_all (SalutRoomlistManager *self)
       priv->status_changed_id = 0;
     }
 
-  /* FIXME: close roomlist channels */
+  if (priv->roomlist_channels != NULL)
+    {
+      GSList *l = priv->roomlist_channels;
+      priv->roomlist_channels = NULL;
+      g_slist_foreach (l, (GFunc) g_object_unref, NULL);
+      g_slist_free (l);
+    }
 }
 
 static void
-- 
1.5.6.5




More information about the Telepathy-commits mailing list