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.
This commit is contained in:
Ole André Vadla Ravnås 2008-08-28 22:02:28 +00:00
parent 9a72198248
commit e3fcb1d801
2 changed files with 11 additions and 2 deletions

View file

@ -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:

View file

@ -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)