summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2020-08-24 16:58:41 +1000
committerMatthew Waters <matthew@centricular.com>2020-08-24 17:02:35 +1000
commite5a2e3ac4ca5bf22879d5ac1f91b94fe4f365de8 (patch)
tree104d31ffcc0dc3aa6c74dfb219efdf908a441b26 /ext
parent29e969493b45bd957b52affa1c8e055400973196 (diff)
downloadgstreamer-plugins-bad-e5a2e3ac4ca5bf22879d5ac1f91b94fe4f365de8.tar.gz
sctpdec: unref after retrieving the static pad template
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1535>
Diffstat (limited to 'ext')
-rw-r--r--ext/sctp/gstsctpdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/sctp/gstsctpdec.c b/ext/sctp/gstsctpdec.c
index 45366c2c0..ab242ade7 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));