Zebediah Figura : quartz/vmr9: Avoid leaking the presenter's reference to the d3d9 device.
Module: wine Branch: master Commit: f4d66140ad61597e918b94077f18dbb98f524e66 URL: https://source.winehq.org/git/wine.git/?a=commit;h=f4d66140ad61597e918b94077... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Sat Aug 29 12:37:35 2020 -0500 quartz/vmr9: Avoid leaking the presenter's reference to the d3d9 device. Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/quartz/vmr9.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c index 28123dcf7d..5f95f547e3 100644 --- a/dlls/quartz/vmr9.c +++ b/dlls/quartz/vmr9.c @@ -2622,6 +2622,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;
participants (1)
-
Alexandre Julliard