gst/rtpmanager/gstrtpbin.c: Fix memleak. Fixes #484990.
authorLaurent Glayal <spglegle@yahoo.fr>
Tue, 9 Oct 2007 10:01:39 +0000 (10:01 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 Aug 2009 01:30:31 +0000 (02:30 +0100)
Original commit message from CVS:
Patch by: Laurent Glayal <spglegle at yahoo dot fr>
* gst/rtpmanager/gstrtpbin.c: (create_stream),
(gst_rtp_bin_class_init):
Fix memleak. Fixes #484990.

gst/rtpmanager/gstrtpbin.c

index eddd137..034d652 100644 (file)
@@ -912,6 +912,7 @@ create_stream (GstRtpBinSession * session, guint32 ssrc)
   templ = gst_static_pad_template_get (&rtpbin_sync_sink_template);
   stream->sync_pad = gst_pad_new_from_template (templ, padname);
   gst_object_unref (templ);
+  g_free (padname);
   gst_object_ref (stream->sync_pad);
   gst_object_sink (stream->sync_pad);
   gst_pad_set_element_private (stream->sync_pad, stream);