[vlc-commits] [Git][videolan/vlc][3.0.x] d3d11: fix ID3D11Device leak in UWP mode

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed Mar 22 09:47:22 UTC 2023



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
3e483547 by Steve Lhomme at 2023-03-21T09:27:53+01:00
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 changed file:

- modules/video_output/win32/direct3d11.c


Changes:

=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -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;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3e483547037e49f8ef828f2f0455593400968cf4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3e483547037e49f8ef828f2f0455593400968cf4
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list