mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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:
parent
3baf0d5dc4
commit
a4fbb49ef3
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue