mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +00:00
sctpdec: unref after retrieving the static pad template
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1535>
This commit is contained in:
parent
29e969493b
commit
e5a2e3ac4c
1 changed files with 1 additions and 0 deletions
|
@ -557,6 +557,7 @@ get_pad_for_stream_id (GstSctpDec * self, guint16 stream_id)
|
|||
new_pad = g_object_new (GST_TYPE_SCTP_DEC_PAD, "name", pad_name,
|
||||
"direction", template->direction, "template", template, NULL);
|
||||
g_free (pad_name);
|
||||
gst_clear_object (&template);
|
||||
|
||||
gst_pad_set_event_function (new_pad,
|
||||
GST_DEBUG_FUNCPTR ((GstPadEventFunction) gst_sctp_dec_src_event));
|
||||
|
|
Loading…
Reference in a new issue