projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29e9694
)
sctpdec: unref after retrieving the static pad template
author
Matthew Waters
<matthew@centricular.com>
Mon, 24 Aug 2020 06:58:41 +0000
(16:58 +1000)
committer
Matthew Waters
<matthew@centricular.com>
Mon, 24 Aug 2020 07:02:35 +0000
(17:02 +1000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1535>
ext/sctp/gstsctpdec.c
patch
|
blob
|
history
diff --git
a/ext/sctp/gstsctpdec.c
b/ext/sctp/gstsctpdec.c
index
45366c2
..
ab242ad
100644
(file)
--- 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));