gst/rtpmanager/gstrtpbin.c: Fix small memory leak, leaking caps. Fixes #bug 517571.
authorOlivier Crete <tester@tester.ca>
Wed, 20 Feb 2008 09:33:25 +0000 (09:33 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 Aug 2009 01:30:34 +0000 (02:30 +0100)
Original commit message from CVS:
Patch by: Olivier Crete <tester at tester dot ca>
* gst/rtpmanager/gstrtpbin.c: (new_ssrc_pad_found):
Fix small memory leak, leaking caps. Fixes #bug 517571.

gst/rtpmanager/gstrtpbin.c

index 526cf95..4f580f4 100644 (file)
@@ -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 */