quartz/vmr9: Avoid leaking the presenter's reference to the d3d9 device.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-08-29 12:37:35 -05:00 committed by Alexandre Julliard
parent 9e59345fad
commit f4d66140ad

View file

@ -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;