[Telepathy-commits] [telepathy-gabble/master] IBB: add a comment explaining how we use sent_stanzas_not_acked

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Mar 12 06:29:18 PDT 2009


---
 src/bytestream-ibb.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/bytestream-ibb.c b/src/bytestream-ibb.c
index 4966fb7..24e67e9 100644
--- a/src/bytestream-ibb.c
+++ b/src/bytestream-ibb.c
@@ -90,7 +90,9 @@ struct _GabbleBytestreamIBBPrivate
   /* list of reffed (LmMessage *) */
   GSList *received_stanzas_not_acked;
 
-  /* (LmMessage *) -> TRUE */
+  /* (LmMessage *) -> TRUE
+   * We don't keep a ref on the LmMessage as we just use this table to track
+   * stanzas waiting for reply. The stanza is never used (and so deferenced). */
   GHashTable *sent_stanzas_not_acked;
   GString *write_buffer;
   gboolean write_blocked;
-- 
1.5.6.5




More information about the telepathy-commits mailing list