d3dxof: Close source file when releasing EnumObject.

This commit is contained in:
Christian Costa 2008-11-09 11:09:56 +01:00 committed by Alexandre Julliard
parent 35cc5504eb
commit b46b75170e
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}