[PATCH 1/4] quartz/vmr9: Avoid leaking the presenter's reference to the d3d9 device.

Zebediah Figura z.figura12 at gmail.com
Sat Aug 29 12:37:35 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/quartz/vmr9.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 3b42dd0ed52..8795995b849 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -2670,6 +2670,8 @@ static ULONG WINAPI VMR9_ImagePresenter_Release(IVMRImagePresenter9 *iface)
                 IDirect3DSurface9_Release(surface);
         }
 
+        if (This->d3d9_dev)
+            IDirect3DDevice9_Release(This->d3d9_dev);
         free(This->d3d9_surfaces);
         This->d3d9_surfaces = NULL;
         This->num_surfaces = 0;
-- 
2.28.0




More information about the wine-devel mailing list