From b46b75170e2a43ba40da2feaee5061c5f6c3fe97 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Sun, 9 Nov 2008 11:09:56 +0100 Subject: [PATCH] d3dxof: Close source file when releasing EnumObject. --- dlls/d3dxof/d3dxof.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.11.4.GIT