[telepathy-glib/master] ExampleCallableMediaChannel: in media_request_streams, don't leak the stream info "structs" (GValueArrays)

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, 2 insertions(+), 1 deletions(-)

diff --git a/examples/cm/callable/media-channel.c b/examples/cm/callable/media-channel.c
index 1763d9c..ef0d2c7 100644
--- a/examples/cm/callable/media-channel.c
+++ b/examples/cm/callable/media-channel.c
@@ -42,6 +42,7 @@
 #include <telepathy-glib/base-connection.h>
 #include <telepathy-glib/channel-iface.h>
 #include <telepathy-glib/dbus.h>
+#include <telepathy-glib/gtypes.h>
 #include <telepathy-glib/interfaces.h>
 #include <telepathy-glib/svc-channel.h>
 #include <telepathy-glib/svc-generic.h>
@@ -1210,7 +1211,7 @@ media_request_streams (TpSvcChannelTypeStreamedMedia *iface,
 
   tp_svc_channel_type_streamed_media_return_from_request_streams (context,
       array);
-  g_ptr_array_free (array, TRUE);
+  g_boxed_free (TP_ARRAY_TYPE_MEDIA_STREAM_INFO_LIST, array);
 
   return;
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list