d3dxof: Close source file when releasing EnumObject.
This commit is contained in:
parent
35cc5504eb
commit
b46b75170e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue