[Telepathy-commits] [telepathy-gabble/master] GabbleMediaChannel: don't leak the value arrays returned by ListStreams and RequestStreams

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Mar 11 02:45:45 PDT 2009


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

diff --git a/src/media-channel.c b/src/media-channel.c
index b80cd58..c24ba24 100644
--- a/src/media-channel.c
+++ b/src/media-channel.c
@@ -1006,6 +1006,7 @@ gabble_media_channel_list_streams (TpSvcChannelTypeStreamedMedia *iface,
     }
 
   tp_svc_channel_type_streamed_media_return_from_list_streams (context, ret);
+  g_ptr_array_foreach (ret, (GFunc) g_value_array_free, NULL);
   g_ptr_array_free (ret, TRUE);
 }
 
@@ -1393,6 +1394,7 @@ pending_stream_request_maybe_satisfy (PendingStreamRequest *p,
 
       tp_svc_channel_type_streamed_media_return_from_request_streams (
           p->context, ret);
+      g_ptr_array_foreach (ret, (GFunc) g_value_array_free, NULL);
       g_ptr_array_free (ret, TRUE);
       p->context = NULL;
       return TRUE;
-- 
1.5.6.5




More information about the telepathy-commits mailing list