[0.11] gst-plugins-good: jpegdec: fix peer_caps leak

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 05:33:26 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 7202d37c9d2c566f49d035489e04ddecec16b33d
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=7202d37c9d2c566f49d035489e04ddecec16b33d

Author: Nicola Murino <nicola.murino at gmail.com>
Date:   Wed Dec 21 20:50:21 2011 +0100

jpegdec: fix peer_caps leak

https://bugzilla.gnome.org/show_bug.cgi?id=666688

---

 ext/jpeg/gstjpegdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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



More information about the gstreamer-commits mailing list