From: Olivier Crete Date: Wed, 20 Feb 2008 09:33:25 +0000 (+0000) Subject: gst/rtpmanager/gstrtpbin.c: Fix small memory leak, leaking caps. Fixes #bug 517571. X-Git-Tag: 1.19.3~509^2~9905 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db8bdc8b927ef5156bbfc84c9c084abc8b667822;p=platform%2Fupstream%2Fgstreamer.git gst/rtpmanager/gstrtpbin.c: Fix small memory leak, leaking caps. Fixes #bug 517571. Original commit message from CVS: Patch by: Olivier Crete * gst/rtpmanager/gstrtpbin.c: (new_ssrc_pad_found): Fix small memory leak, leaking caps. Fixes #bug 517571. --- diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 526cf95..4f580f4 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -1748,6 +1748,8 @@ new_ssrc_pad_found (GstElement * element, guint ssrc, GstPad * pad, stream->clock_base = val; else stream->clock_base = -1; + + gst_caps_unref (caps); } /* get pad and link */