mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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:
parent
c924d4a466
commit
8da59edc68
1 changed files with 1 additions and 0 deletions
|
@ -912,6 +912,7 @@ create_stream (GstRtpBinSession * session, guint32 ssrc)
|
||||||
templ = gst_static_pad_template_get (&rtpbin_sync_sink_template);
|
templ = gst_static_pad_template_get (&rtpbin_sync_sink_template);
|
||||||
stream->sync_pad = gst_pad_new_from_template (templ, padname);
|
stream->sync_pad = gst_pad_new_from_template (templ, padname);
|
||||||
gst_object_unref (templ);
|
gst_object_unref (templ);
|
||||||
|
g_free (padname);
|
||||||
gst_object_ref (stream->sync_pad);
|
gst_object_ref (stream->sync_pad);
|
||||||
gst_object_sink (stream->sync_pad);
|
gst_object_sink (stream->sync_pad);
|
||||||
gst_pad_set_element_private (stream->sync_pad, stream);
|
gst_pad_set_element_private (stream->sync_pad, stream);
|
||||||
|
|
Loading…
Reference in a new issue