[Telepathy-commits] [telepathy-glib/master] Fix a leak of a hash table per Group TpChannel

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Oct 14 10:31:01 PDT 2008


---
 telepathy-glib/channel.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/channel.c b/telepathy-glib/channel.c
index f116428..a0b156e 100644
--- a/telepathy-glib/channel.c
+++ b/telepathy-glib/channel.c
@@ -621,6 +621,12 @@ tp_channel_finalize (GObject *object)
       self->priv->group_remote_pending = NULL;
     }
 
+  if (self->priv->group_handle_owners != NULL)
+    {
+      g_hash_table_destroy (self->priv->group_handle_owners);
+      self->priv->group_handle_owners = NULL;
+    }
+
   if (self->priv->introspect_needed != NULL)
     {
       g_queue_free (self->priv->introspect_needed);
-- 
1.5.6.5



More information about the Telepathy-commits mailing list