summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOle André Vadla Ravnås <ole.andre.ravnas@tandberg.com>2008-08-28 22:02:28 +0000
committerOle André Vadla Ravnås <ole.andre.ravnas@tandberg.com>2008-08-28 22:02:28 +0000
commite3fcb1d801a37d4e7ff2ab061278230d43f16147 (patch)
tree635b555b9980c22a0eba2d263365b35c3af7ee0f /sys
parent9a72198248e0a29c8bac1f6735123e7954992fef (diff)
downloadgstreamer-plugins-bad-e3fcb1d801a37d4e7ff2ab061278230d43f16147.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/winks/ksvideohelpers.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/winks/ksvideohelpers.c b/sys/winks/ksvideohelpers.c
index 261f41824..7ffe6b09e 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)