[telepathy-gabble/master] Fix a couple of leaks.

Will Thompson will.thompson at collabora.co.uk
Wed Apr 15 09:34:04 PDT 2009


---
 src/jingle-session.c |    4 +++-
 src/media-channel.c  |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/jingle-session.c b/src/jingle-session.c
index 5c990ab..8ab9a13 100644
--- a/src/jingle-session.c
+++ b/src/jingle-session.c
@@ -1397,7 +1397,7 @@ _map_initial_contents (GabbleJingleSession *sess, ContentMapperFunc mapper,
 
   for (li = contents; li; li = li->next)
     {
-      const gchar *disposition;
+      gchar *disposition;
       GabbleJingleContent *c = GABBLE_JINGLE_CONTENT (li->data);
 
       g_object_get (c, "disposition", &disposition, NULL);
@@ -1406,6 +1406,8 @@ _map_initial_contents (GabbleJingleSession *sess, ContentMapperFunc mapper,
         {
           mapper (sess, c, user_data);
         }
+
+      g_free (disposition);
     }
 
   g_list_free (contents);
diff --git a/src/media-channel.c b/src/media-channel.c
index 70897ce..46a5b83 100644
--- a/src/media-channel.c
+++ b/src/media-channel.c
@@ -2208,6 +2208,8 @@ session_terminated_cb (GabbleJingleSession *session,
   tp_group_mixin_change_members ((GObject *) channel,
       "", NULL, set, NULL, NULL, terminator, reason);
 
+  tp_intset_destroy (set);
+
   /* Ignore any Google relay session responses we're waiting for. */
   g_list_foreach (priv->stream_creation_datas, stream_creation_data_cancel,
       NULL);
-- 
1.5.6.5




More information about the telepathy-commits mailing list