Skip to content
Snippets Groups Projects
Commit e5a2e3ac authored by Matthew Waters's avatar Matthew Waters :koala:
Browse files

sctpdec: unref after retrieving the static pad template

parent 29e96949
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment