mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
signalprocessor: don't leak the caps
This commit is contained in:
parent
89fed534e8
commit
60f748575b
1 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,8 @@ gst_signal_processor_class_add_pad_template (GstSignalProcessorClass * klass,
|
||||||
"name", name, "name-template", name,
|
"name", name, "name-template", name,
|
||||||
"direction", direction, "presence", GST_PAD_ALWAYS, "caps", caps, NULL);
|
"direction", direction, "presence", GST_PAD_ALWAYS, "caps", caps, NULL);
|
||||||
|
|
||||||
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (new)->index = index;
|
GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (new)->index = index;
|
||||||
GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (new)->channels = channels;
|
GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (new)->channels = channels;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue