windowscodecs: Remove redundant NULL check before HeapFree (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Fri Oct 9 18:05:10 CDT 2009
---
dlls/windowscodecs/pngformat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 6aaca6b..3334d76 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -860,7 +860,7 @@ static HRESULT WINAPI PngFrameEncode_WritePixels(IWICBitmapFrameEncode *iface,
/* set up setjmp/longjmp error handling */
if (setjmp(png_jmpbuf(This->png_ptr)))
{
- if (row_pointers) HeapFree(GetProcessHeap(), 0, row_pointers);
+ HeapFree(GetProcessHeap(), 0, row_pointers);
return E_FAIL;
}
--
1.6.5.rc2
More information about the wine-patches
mailing list