[Telepathy-commits] [telepathy-gabble/master] gabble_bytestream_multiple_finalize: free the fallback_stream_methods list if needed
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Tue Jan 6 08:41:42 PST 2009
---
src/bytestream-multiple.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/bytestream-multiple.c b/src/bytestream-multiple.c
index e3fa865..38baf90 100644
--- a/src/bytestream-multiple.c
+++ b/src/bytestream-multiple.c
@@ -122,6 +122,11 @@ gabble_bytestream_multiple_finalize (GObject *object)
GabbleBytestreamMultiple *self = GABBLE_BYTESTREAM_MULTIPLE (object);
GabbleBytestreamMultiplePrivate *priv =
GABBLE_BYTESTREAM_MULTIPLE_GET_PRIVATE (self);
+ GList *l;
+
+ for (l = priv->fallback_stream_methods; l != NULL; l = g_list_next (l))
+ g_free (l->data);
+ g_slist_free (priv->fallback_stream_methods);
g_free (priv->stream_id);
g_free (priv->stream_init_id);
--
1.5.6.5
More information about the Telepathy-commits
mailing list