From 5f3c8eb680cf109cb2d662181a9c21e2bd27e8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Sat, 12 Nov 2011 01:38:37 +0100 Subject: [PATCH] audioconvert, videoconvert: fix caps leak in transform_caps --- gst/audioconvert/gstaudioconvert.c | 2 -- gst/videoconvert/gstvideoconvert.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index 934c3b48d3..dea382ed02 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -307,8 +307,6 @@ gst_audio_convert_transform_caps (GstBaseTransform * btrans, GstCaps *tmp, *tmp2; GstCaps *result; - result = gst_caps_copy (caps); - /* Get all possible caps that we can transform to */ tmp = gst_audio_convert_caps_remove_format_info (caps); diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c index 210b8e1310..4b81892a9c 100644 --- a/gst/videoconvert/gstvideoconvert.c +++ b/gst/videoconvert/gstvideoconvert.c @@ -141,8 +141,6 @@ gst_video_convert_transform_caps (GstBaseTransform * btrans, GstCaps *tmp, *tmp2; GstCaps *result; - result = gst_caps_copy (caps); - /* Get all possible caps that we can transform to */ tmp = gst_video_convert_caps_remove_format_info (caps);