[Telepathy-commits] [telepathy-gabble/master] always destroy parameters hash table created in extract_tube_information

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Wed Dec 17 08:54:32 PST 2008


---
 src/tubes-channel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index 6c7ac8d..ff7e2e2 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -1156,6 +1156,7 @@ gabble_tubes_channel_tube_si_offered (GabbleTubesChannel *self,
 
       NODE_DEBUG (tube_node, e.message);
       gabble_bytestream_iface_close (bytestream, &e);
+      g_hash_table_destroy (parameters);
       return;
     }
 
@@ -1171,6 +1172,8 @@ gabble_tubes_channel_tube_si_offered (GabbleTubesChannel *self,
 
   tube = create_new_tube (self, type, priv->handle, service,
       parameters, stream_id, tube_id, (GabbleBytestreamIface *) bytestream);
+
+  g_hash_table_destroy (parameters);
 }
 
 /* Called when we receive a SI request,
@@ -1432,6 +1435,8 @@ tube_msg_offered (GabbleTubesChannel *self,
 
   tp_channel_manager_emit_new_channel (priv->conn->private_tubes_factory,
       TP_EXPORTABLE_CHANNEL (tube), NULL);
+
+  g_hash_table_destroy (parameters);
 }
 
 static void
-- 
1.5.6.5




More information about the Telepathy-commits mailing list