Christian Costa : d3dxof: Close source file when releasing EnumObject.

Alexandre Julliard julliard at winehq.org
Mon Nov 10 07:43:53 CST 2008


Module: wine
Branch: master
Commit: b46b75170e2a43ba40da2feaee5061c5f6c3fe97
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b46b75170e2a43ba40da2feaee5061c5f6c3fe97

Author: Christian Costa <titan.costa at wanadoo.fr>
Date:   Sun Nov  9 11:09:56 2008 +0100

d3dxof: Close source file when releasing EnumObject.

---

 dlls/d3dxof/d3dxof.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c
index 058f831..1939482 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;
 }




More information about the wine-cvs mailing list