d3dxof: Release allocated xobjects.

This commit is contained in:
Christian Costa 2008-12-24 11:03:33 +01:00 committed by Alexandre Julliard
parent 77ca32cf71
commit d0e37532ca
1 changed files with 3 additions and 0 deletions

View File

@ -1911,7 +1911,10 @@ static ULONG WINAPI IDirectXFileEnumObjectImpl_Release(IDirectXFileEnumObject* i
{
int i;
for (i = 0; i < This->nb_xobjects; i++)
{
IDirectXFileData_Release(This->pRefObjects[i]);
HeapFree(GetProcessHeap(), 0, This->xobjects[i]);
}
if (This->source == DXFILELOAD_FROMFILE)
HeapFree(GetProcessHeap(), 0, This->buf.buffer);
if (This->hFile != INVALID_HANDLE_VALUE)