Module: wine Branch: master Commit: e4b58b450b1c0e35a1ef02d15b9dbb024ae210a9 URL: https://source.winehq.org/git/wine.git/?a=commit;h=e4b58b450b1c0e35a1ef02d15...
Author: Zebediah Figura z.figura12@gmail.com Date: Mon Apr 1 21:38:24 2019 -0500
quartz/vmr9: Avoid unloading d3d9 while holding d3d9 objects.
Signed-off-by: Zebediah Figura z.figura12@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/quartz/vmr9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c index de30049..885fbe2 100644 --- a/dlls/quartz/vmr9.c +++ b/dlls/quartz/vmr9.c @@ -834,7 +834,6 @@ static ULONG WINAPI VMR9Inner_Release(IUnknown * iface) { TRACE("Destroying\n"); BaseControlWindow_Destroy(&This->baseControlWindow); - FreeLibrary(This->hD3d9);
if (This->allocator) IVMRSurfaceAllocatorEx9_Release(This->allocator); @@ -848,6 +847,7 @@ static ULONG WINAPI VMR9Inner_Release(IUnknown * iface) This->allocator_d3d9_dev = NULL; }
+ FreeLibrary(This->hD3d9); CoTaskMemFree(This); } return refCount;