d3dxof: Remove redundant NULL check before HeapFree (Smatch).

This commit is contained in:
Michael Stefaniuc 2009-03-25 23:02:42 +01:00 committed by Alexandre Julliard
parent 6fa69c3f2b
commit 289dca2e0e
1 changed files with 1 additions and 2 deletions

View File

@ -1100,9 +1100,8 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
error:
HeapFree(GetProcessHeap(), 0, This->buf.pxo_tab);
HeapFree(GetProcessHeap(), 0, This->buf.pxo->pdata);
HeapFree(GetProcessHeap(), 0, pstrings);
if (This->buf.pxo->pdata)
HeapFree(GetProcessHeap(), 0, This->buf.pxo->pdata);
return hr;
}