d3d12: Suppress fence data object leak report

We don't release GstD3D12Device intentionally, thus
a GstD3D12FenceDataPool owned by a device will not be released
but that's expected leak.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7243>
This commit is contained in:
Seungha Yang 2024-07-26 02:46:46 +09:00
parent 9a8d7db5de
commit 4a6daad517

View file

@ -208,9 +208,13 @@ gst_d3d12_fence_data_pool_acquire (GstD3D12FenceDataPool * pool,
}
}
if (!new_data)
if (!new_data) {
new_data = gst_d3d12_fence_data_new ();
if (GST_OBJECT_FLAG_IS_SET (pool, GST_OBJECT_FLAG_MAY_BE_LEAKED))
GST_MINI_OBJECT_FLAG_SET (new_data, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
}
new_data->pool = (GstD3D12FenceDataPool *) gst_object_ref (pool);
new_data->dispose =
(GstMiniObjectDisposeFunction) gst_d3d12_fence_data_dispose;