Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
719dd732 by Steve Lhomme at 2021-06-15T06:57:35+00:00
direct3d11: fix potential crash when ID3D11DeviceContext4 is not found
If ID3D11DeviceContext4 is not found we should not release is when we call the
error cleanup.
- - - - -
1 changed file:
- modules/video_output/win32/direct3d11.c
Changes:
=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -1099,8 +1099,11 @@ error:
ID3D11Fence_Release(sys->d3dRenderFence);
sys->d3dRenderFence = NULL;
}
- ID3D11DeviceContext4_Release(sys->d3dcontext4);
- sys->d3dcontext4 = NULL;
+ if (sys->d3dcontext4)
+ {
+ ID3D11DeviceContext4_Release(sys->d3dcontext4);
+ sys->d3dcontext4 = NULL;
+ }
CloseHandle(sys->renderFinished);
return hr;
}
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/719dd732872f1542836308ea78627164270472da
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/719dd732872f1542836308ea78627164270472da
You're receiving this email because of your account on code.videolan.org.
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits