Skip to content

Commit

Permalink
d3d11: fix ID3D11Device leak in UWP mode
Browse files Browse the repository at this point in the history
The ID3D11DeviceContext_GetDevice() already gets a reference to the device.
We don't do add one manually.
  • Loading branch information
robUx4 committed Mar 21, 2023
1 parent 85868df commit 3e48354
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/video_output/win32/direct3d11.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ static int OpenCoreW(vout_display_t *vd)
sys->d3d_dev.d3dcontext = d3dcontext;
sys->d3d_dev.feature_level = ID3D11Device_GetFeatureLevel(sys->d3d_dev.d3ddevice );
IDXGISwapChain_AddRef (sys->dxgiswapChain);
ID3D11Device_AddRef (sys->d3d_dev.d3ddevice);
ID3D11DeviceContext_AddRef(sys->d3d_dev.d3dcontext);

sys->sys.pf_GetRect = GetRect;
Expand Down

0 comments on commit 3e48354

Please sign in to comment.