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:
parent
9e59345fad
commit
f4d66140ad
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue