[Telepathy-commits] [telepathy-gabble/master] GabbleImFactory: add a comment to explain why we use a temporary variable
Alban Crequy
alban.crequy at collabora.co.uk
Thu Nov 27 10:50:18 PST 2008
---
src/im-factory.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/im-factory.c b/src/im-factory.c
index 2ec1c53..be749b3 100644
--- a/src/im-factory.c
+++ b/src/im-factory.c
@@ -390,6 +390,9 @@ new_im_channel (GabbleImFactory *fac,
static void
gabble_im_factory_close_all (GabbleImFactory *self)
{
+ /* Use a temporary variable because we don't want
+ * im_channel_closed_cb to remove the channel from the hash table a
+ * second time */
if (self->priv->channels != NULL)
{
GHashTable *tmp = self->priv->channels;
--
1.5.6.5
More information about the Telepathy-commits
mailing list