Christian Costa : d3dxof: Small cleanup.
Alexandre Julliard
julliard at winehq.org
Wed Dec 24 13:18:34 CST 2008
Module: wine
Branch: master
Commit: 50ace397ee010f4a5978d0171c68221db4edc534
URL: http://source.winehq.org/git/wine.git/?a=commit;h=50ace397ee010f4a5978d0171c68221db4edc534
Author: Christian Costa <titan.costa at wanadoo.fr>
Date: Wed Dec 24 11:04:02 2008 +0100
d3dxof: Small cleanup.
---
dlls/d3dxof/d3dxof.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c
index e0e4774..616cea5 100644
--- a/dlls/d3dxof/d3dxof.c
+++ b/dlls/d3dxof/d3dxof.c
@@ -1916,9 +1916,10 @@ static ULONG WINAPI IDirectXFileEnumObjectImpl_Release(IDirectXFileEnumObject* i
HeapFree(GetProcessHeap(), 0, This->xobjects[i]);
}
if (This->source == DXFILELOAD_FROMFILE)
+ {
HeapFree(GetProcessHeap(), 0, This->buf.buffer);
- if (This->hFile != INVALID_HANDLE_VALUE)
CloseHandle(This->hFile);
+ }
HeapFree(GetProcessHeap(), 0, This);
}
More information about the wine-cvs
mailing list