Commit b745d869 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

quartz: Use FreeLibrary instead of CloseHandle (Coverity).

parent 7ddb8e25
......@@ -838,7 +838,7 @@ static ULONG WINAPI VMR9Inner_Release(IUnknown * iface)
{
TRACE("Destroying\n");
BaseControlWindow_Destroy(&This->baseControlWindow);
CloseHandle(This->hD3d9);
FreeLibrary(This->hD3d9);
if (This->allocator)
IVMRSurfaceAllocatorEx9_Release(This->allocator);
......@@ -2308,7 +2308,7 @@ static HRESULT vmr_create(IUnknown *outer_unk, LPVOID *ppv, const CLSID *clsid)
fail:
BaseRendererImpl_Release(&pVMR->renderer.filter.IBaseFilter_iface);
CloseHandle(pVMR->hD3d9);
FreeLibrary(pVMR->hD3d9);
CoTaskMemFree(pVMR);
return hr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment