[telepathy-glib/master] ExampleCallableMediaChannel: don't leak the streams' hash table

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Dec 3 08:00:37 PST 2009


---
 examples/cm/callable/media-channel.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/examples/cm/callable/media-channel.c b/examples/cm/callable/media-channel.c
index 22a00ee..376bed0 100644
--- a/examples/cm/callable/media-channel.c
+++ b/examples/cm/callable/media-channel.c
@@ -476,6 +476,9 @@ dispose (GObject *object)
 
   self->priv->disposed = TRUE;
 
+  g_hash_table_destroy (self->priv->streams);
+  self->priv->streams = NULL;
+
   example_callable_media_channel_close (self, self->group.self_handle,
       TP_CHANNEL_GROUP_CHANGE_REASON_NONE);
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list