d3dxof: Remove redundant NULL check before HeapFree (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Wed Mar 25 17:02:42 CDT 2009
---
dlls/d3dxof/d3dxof.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c
index 6f9b266..5d42d53 100644
--- a/dlls/d3dxof/d3dxof.c
+++ b/dlls/d3dxof/d3dxof.c
@@ -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;
}
--
1.6.2.1
More information about the wine-patches
mailing list