diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index 058f831af73..19394828207 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -1740,7 +1740,10 @@ static ULONG WINAPI IDirectXFileEnumObjectImpl_Release(IDirectXFileEnumObject* i TRACE("(%p/%p): ReleaseRef to %d\n", iface, This, ref); if (!ref) + { + CloseHandle(This->hFile); HeapFree(GetProcessHeap(), 0, This); + } return ref; }