d3d11window: Fix processor output view resource leak

Because this object holds reference to native d3d11 device handle internally,
related native d3d11 objects would be leaked as well.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1243>
This commit is contained in:
Seungha Yang 2020-05-05 20:32:53 +09:00
parent 3baf0d5dc4
commit a4fbb49ef3

View file

@ -253,6 +253,11 @@ gst_d3d11_window_release_resources (GstD3D11Device * device,
window->rtv = NULL;
}
if (window->pov) {
window->pov->Release ();
window->pov = NULL;
}
if (window->swap_chain) {
window->swap_chain->Release ();
window->swap_chain = NULL;