Michael Stefaniuc : windowscodecs: Remove redundant NULL check before HeapFree (Smatch).
Alexandre Julliard
julliard at winehq.org
Mon Oct 12 11:19:41 CDT 2009
Module: wine
Branch: master
Commit: 13ad5d17250e5e5822ab3a99122f9bef4c8ae08a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=13ad5d17250e5e5822ab3a99122f9bef4c8ae08a
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Sat Oct 10 01:05:10 2009 +0200
windowscodecs: Remove redundant NULL check before HeapFree (Smatch).
---
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;
}
More information about the wine-cvs
mailing list