[Telepathy-commits] [telepathy-gabble/master] GabbleRoomlistManager: add a comment to explain why we use a temporary variable

Alban Crequy alban.crequy at collabora.co.uk
Thu Nov 27 10:54:58 PST 2008


---
 src/roomlist-manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/roomlist-manager.c b/src/roomlist-manager.c
index 2faa48a..34a3d2f 100644
--- a/src/roomlist-manager.c
+++ b/src/roomlist-manager.c
@@ -92,6 +92,9 @@ gabble_roomlist_manager_close_all (GabbleRoomlistManager *self)
       self->priv->status_changed_id = 0;
     }
 
+  /* Use a temporary variable because we don't want
+   * roomlist_channel_closed_cb to remove the channel from the ptr array a
+   * second time */
   if (self->priv->channels != NULL)
     {
       GPtrArray *tmp = self->priv->channels;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list