From b8e1ef211c8cfbc0d7681decc905b1e267563491 Mon Sep 17 00:00:00 2001
From: Steve Lhomme <robux4@ycbcr.xyz>
Date: Fri, 7 Jan 2022 15:37:44 +0100
Subject: [PATCH] d3d11_fmt: 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.
---
 modules/video_chroma/d3d11_fmt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index e4e32d261077..e074044cd8c9 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -918,6 +918,7 @@ void D3D11_LogResources(d3d11_decoder_device_t *dev_sys)
         {
             IDXGIDebug *pDXGIDebug = pv;
             IDXGIDebug_ReportLiveObjects(pDXGIDebug, DXGI_DEBUG_ALL, DXGI_DEBUG_RLO_ALL);
+            IDXGIDebug_Release(pDXGIDebug);
         }
     }
 # endif
-- 
GitLab