gst-plugins-base: videoconvert: plug caps leak

Mark Nauwelaerts mnauw at kemper.freedesktop.org
Mon Apr 2 08:04:51 PDT 2012


Module: gst-plugins-base
Branch: master
Commit: 6656affdfa807e4445056b5a7a0a014c31d99ae5
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=6656affdfa807e4445056b5a7a0a014c31d99ae5

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Mon Apr  2 17:01:59 2012 +0200

videoconvert: plug caps leak

---

 gst/videoconvert/gstvideoconvert.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gst/videoconvert/gstvideoconvert.c b/gst/videoconvert/gstvideoconvert.c
index 219e843..a59c6c4 100644
--- a/gst/videoconvert/gstvideoconvert.c
+++ b/gst/videoconvert/gstvideoconvert.c
@@ -146,6 +146,7 @@ gst_video_convert_fixate_caps (GstBaseTransform * trans,
 
   result = gst_caps_intersect (othercaps, caps);
   if (gst_caps_is_empty (result)) {
+    gst_caps_unref (result);
     result = othercaps;
   } else {
     gst_caps_unref (othercaps);



More information about the gstreamer-commits mailing list