From: Mark Nauwelaerts Date: Wed, 4 May 2011 10:36:01 +0000 (+0200) Subject: xvidenc: do not leak peer pad reference X-Git-Tag: 1.19.3~507^2~16050^2~272 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1d9574a9d241dfae26855731e84fcc6b07371be;p=platform%2Fupstream%2Fgstreamer.git xvidenc: do not leak peer pad reference --- diff --git a/ext/xvid/gstxvidenc.c b/ext/xvid/gstxvidenc.c index 6b20080..dc60d0d 100644 --- a/ext/xvid/gstxvidenc.c +++ b/ext/xvid/gstxvidenc.c @@ -835,6 +835,8 @@ gst_xvidenc_getcaps (GstPad * pad) caps = gst_caps_intersect (peercaps, templcaps); gst_caps_unref (peercaps); + gst_object_unref (peer); + peer = NULL; } else { caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); }