From 58e451325b4dbccefaca0326b6109aad97a84c98 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 16 Mar 2021 15:58:57 +0900 Subject: [PATCH] d3d11colorconvert: Fix caps leak GstBaseTransform::fixate_caps() takes ownership of passed othercaps argument. Part-of: --- sys/d3d11/gstd3d11convert.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/d3d11/gstd3d11convert.cpp b/sys/d3d11/gstd3d11convert.cpp index 6456324c84..38cc34fa15 100644 --- a/sys/d3d11/gstd3d11convert.cpp +++ b/sys/d3d11/gstd3d11convert.cpp @@ -2253,6 +2253,7 @@ gst_d3d11_color_convert_fixate_caps (GstBaseTransform * base, format = gst_d3d11_base_convert_get_fixed_format (base, direction, caps, othercaps); + gst_caps_unref (othercaps); if (gst_caps_is_empty (format)) { GST_ERROR_OBJECT (base, "Could not convert formats");