padtemplate: Directly unreference the documentation caps

The public-facing API has a (valid) protection against NULL caps. We can just
directly remove it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/515>
This commit is contained in:
Edward Hervey 2020-06-06 08:24:01 +02:00 committed by Edward Hervey
parent ba0ffeb36c
commit 221cb03664

View file

@ -230,7 +230,7 @@ gst_pad_template_dispose (GObject * object)
gst_caps_unref (GST_PAD_TEMPLATE_CAPS (templ));
}
gst_pad_template_set_documentation_caps (templ, NULL);
gst_caps_replace (&templ->ABI.abi.documentation_caps, NULL);
G_OBJECT_CLASS (parent_class)->dispose (object);
}