[Telepathy-commits] [telepathy-gabble/master] GabblePrivateTubesFactory: add a comment to explain why we use a temporary variable
Alban Crequy
alban.crequy at collabora.co.uk
Thu Nov 27 10:48:29 PST 2008
---
src/private-tubes-factory.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/private-tubes-factory.c b/src/private-tubes-factory.c
index 7ad7f60..2b936da 100644
--- a/src/private-tubes-factory.c
+++ b/src/private-tubes-factory.c
@@ -342,6 +342,9 @@ gabble_private_tubes_factory_close_all (GabblePrivateTubesFactory *fac)
priv->msg_tube_cb = NULL;
}
+ /* Use a temporary variable because we don't want
+ * tubes_channel_closed_cb to remove the channel from the hash table a
+ * second time */
if (priv->channels != NULL)
{
GHashTable *tmp = priv->channels;
--
1.5.6.5
More information about the Telepathy-commits
mailing list