summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--sys/winks/ksvideohelpers.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 75abcd17..829fdac3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-28 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
+
+ * sys/winks/ksvideohelpers.c (ks_video_media_type_free):
+ Avoid leaking the KSDATARANGE member of each KsVideoMediaType.
+
2008-08-28 Jan Schmidt <Jan.Schmidt@sun.com>
* gst/dccp/gstdccp.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)