From e3fcb1d801a37d4e7ff2ab061278230d43f16147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 28 Aug 2008 22:02:28 +0000 Subject: sys/winks/ksvideohelpers.c (ks_video_media_type_free): Avoid leaking the KSDATARANGE member of each KsVideoMediaType. Original commit message from CVS: * sys/winks/ksvideohelpers.c (ks_video_media_type_free): Avoid leaking the KSDATARANGE member of each KsVideoMediaType. --- sys/winks/ksvideohelpers.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/winks/ksvideohelpers.c') diff --git a/sys/winks/ksvideohelpers.c b/sys/winks/ksvideohelpers.c index 261f4182..7ffe6b09 100644 --- a/sys/winks/ksvideohelpers.c +++ b/sys/winks/ksvideohelpers.c @@ -28,11 +28,13 @@ GST_DEBUG_CATEGORY_EXTERN (gst_ks_debug); static const GUID MEDIASUBTYPE_FOURCC = { 0x0 /* FourCC here */ , 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xAA, 0x00, - 0x38, 0x9B, 0x71} }; + 0x38, 0x9B, 0x71} +}; extern const GUID MEDIASUBTYPE_I420 = { 0x30323449, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, - 0x71} }; + 0x71} +}; static GstStructure * ks_video_format_to_structure (GUID subtype_guid, GUID format_guid) @@ -220,6 +222,8 @@ ks_video_media_type_free (KsVideoMediaType * media_type) if (media_type == NULL) return; + g_free ((gpointer) media_type->range); + g_free (media_type->format); if (media_type->translated_caps != NULL) -- cgit v1.2.1