From: Nicola Murino Date: Wed, 21 Dec 2011 19:50:21 +0000 (+0100) Subject: jpegdec: fix peer_caps leak X-Git-Tag: RELEASE-0.11.1~7^2~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7202d37c9d2c566f49d035489e04ddecec16b33d;p=platform%2Fupstream%2Fgst-plugins-good.git jpegdec: fix peer_caps leak https://bugzilla.gnome.org/show_bug.cgi?id=666688 --- diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index fe5652b..18cf20d 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -808,7 +808,7 @@ gst_jpeg_dec_getcaps (GstPad * pad) templ_caps = gst_pad_get_pad_template_caps (pad); caps = gst_caps_intersect_full (peer_caps, templ_caps, GST_CAPS_INTERSECT_FIRST); - + gst_caps_unref (peer_caps); gst_object_unref (peer); } else { caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad));