[vlc-commits] [Git][videolan/vlc][3.0.x] d3d11: release the debug interface we queried

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Thu Feb 10 16:09:34 UTC 2022



Hugo Beauzée-Luyssen pushed to branch 3.0.x at VideoLAN / VLC


Commits:
5c999faa by Steve Lhomme at 2022-02-10T13:51:27+00:00
d3d11: release the debug interface we queried

The doc doesn't say we have to release it but it makes sense. If it was received
by a ComPtr it would be.

Similar to b8e1ef211c8cfbc0d7681decc905b1e267563491 on 4.0

- - - - -


2 changed files:

- modules/video_chroma/d3d11_fmt.c
- modules/video_output/win32/common.c


Changes:

=====================================
modules/video_chroma/d3d11_fmt.c
=====================================
@@ -729,7 +729,10 @@ void D3D11_Destroy(d3d11_handle_t *hd3d)
         if (pf_DXGIGetDebugInterface) {
             IDXGIDebug *pDXGIDebug;
             if (SUCCEEDED(pf_DXGIGetDebugInterface(&IID_IDXGIDebug, (void**)&pDXGIDebug)))
+            {
                 IDXGIDebug_ReportLiveObjects(pDXGIDebug, DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_ALL);
+                IDXGIDebug_Release(pDXGIDebug);
+            }
         }
     }
 # endif


=====================================
modules/video_output/win32/common.c
=====================================
@@ -368,6 +368,7 @@ void CommonClean(vout_display_t *vd)
             HRESULT hr = pf_DXGIGetDebugInterface(&IID_IDXGIDebug, (void**)&pDXGIDebug);
             if (SUCCEEDED(hr) && pDXGIDebug) {
                 hr = IDXGIDebug_ReportLiveObjects(pDXGIDebug, DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_ALL);
+                IDXGIDebug_Release(pDXGIDebug);
             }
         }
         FreeLibrary(sys->dxgidebug_dll);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5c999faac3e4a4764dd9790379b999c3fdb123d4

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




More information about the vlc-commits mailing list