summaryrefslogtreecommitdiff
path: root/src/call-stream.c
diff options
context:
space:
mode:
authorMike Ruprecht <mike.ruprecht@collabora.co.uk>2010-01-05 19:40:11 -0600
committerMike Ruprecht <mike.ruprecht@collabora.co.uk>2010-01-05 19:40:11 -0600
commit2e75d502a47a85bd321acf7e5eef6e957f542a53 (patch)
treeec38f1f00d3641d8dcb157668d78ced1afa5ffc0 /src/call-stream.c
parent2ef7cddac66cd4774c17e920a4476dc3070bc2c8 (diff)
downloadtelepathy-gabble-2e75d502a47a85bd321acf7e5eef6e957f542a53.tar.gz
Free GabbleCallStream's endpoints when disposing.
Diffstat (limited to 'src/call-stream.c')
-rw-r--r--src/call-stream.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/call-stream.c b/src/call-stream.c
index 6f9c47405..2d3aa040e 100644
--- a/src/call-stream.c
+++ b/src/call-stream.c
@@ -575,12 +575,21 @@ gabble_call_stream_dispose (GObject *object)
{
GabbleCallStream *self = GABBLE_CALL_STREAM (object);
GabbleCallStreamPrivate *priv = self->priv;
+ GList *l;
if (priv->dispose_has_run)
return;
priv->dispose_has_run = TRUE;
+ for (l = priv->endpoints; l != NULL; l = g_list_next (l))
+ {
+ g_object_unref (l->data);
+ }
+
+ g_list_free (priv->endpoints);
+ priv->endpoints = NULL;
+
if (priv->content != NULL)
g_object_unref (priv->content);