gst/rtpmanager/gstrtpbin.c: Fix memleak. Fixes #484990.

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.
This commit is contained in:
Laurent Glayal 2007-10-09 10:01:39 +00:00 committed by Tim-Philipp Müller
parent c924d4a466
commit 8da59edc68

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