summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-03-14 12:33:53 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-03-14 18:49:54 -0400
commitcbd7e9f5788a193d9802b329035c19170cb0c023 (patch)
tree0d1d93a4606a676154103f050bd0940a55b58b44
parentd20ace30f0bcb62f854cf383d185edba1faa85b6 (diff)
downloadtelepathy-farstream-cbd7e9f5788a193d9802b329035c19170cb0c023.tar.gz
Make sure all TfCallStream are disposed before their content
-rw-r--r--telepathy-farstream/call-content.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/telepathy-farstream/call-content.c b/telepathy-farstream/call-content.c
index affafd9..9ac49c8 100644
--- a/telepathy-farstream/call-content.c
+++ b/telepathy-farstream/call-content.c
@@ -344,7 +344,13 @@ tf_call_content_dispose (GObject *object)
g_debug (G_STRFUNC);
if (self->streams)
- g_ptr_array_free (self->streams, TRUE);
+ {
+ guint i;
+
+ for (i = 0; i < self->streams->len; i++)
+ g_object_run_dispose (G_OBJECT (g_ptr_array_index (self->streams, i)));
+ g_ptr_array_free (self->streams, TRUE);
+ }
self->streams = NULL;
if (self->fssession)