From: Matthew Waters Date: Mon, 24 Aug 2020 06:58:41 +0000 (+1000) Subject: sctpdec: unref after retrieving the static pad template X-Git-Tag: 1.19.3~507^2~1461 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5a2e3ac4ca5bf22879d5ac1f91b94fe4f365de8;p=platform%2Fupstream%2Fgstreamer.git sctpdec: unref after retrieving the static pad template Part-of: --- diff --git a/ext/sctp/gstsctpdec.c b/ext/sctp/gstsctpdec.c index 45366c2..ab242ad 100644 --- a/ext/sctp/gstsctpdec.c +++ b/ext/sctp/gstsctpdec.c @@ -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));