Skip to content

Commit 3e48354

Browse files
committed
d3d11: fix ID3D11Device leak in UWP mode
The ID3D11DeviceContext_GetDevice() already gets a reference to the device. We don't do add one manually.
1 parent 85868df commit 3e48354

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

modules/video_output/win32/direct3d11.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ static int OpenCoreW(vout_display_t *vd)
233233
sys->d3d_dev.d3dcontext = d3dcontext;
234234
sys->d3d_dev.feature_level = ID3D11Device_GetFeatureLevel(sys->d3d_dev.d3ddevice );
235235
IDXGISwapChain_AddRef (sys->dxgiswapChain);
236-
ID3D11Device_AddRef (sys->d3d_dev.d3ddevice);
237236
ID3D11DeviceContext_AddRef(sys->d3d_dev.d3dcontext);
238237

239238
sys->sys.pf_GetRect = GetRect;

0 commit comments

Comments
 (0)