[PATCH] windowscodecs: Remove redundant NULL check before HeapFree()
Michael Stefaniuc
mstefani at winehq.org
Tue Jan 29 13:38:08 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/windowscodecs/pngformat.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index faffeae6ae..db0fa9ed50 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -815,8 +815,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
end:
LeaveCriticalSection(&This->lock);
- if (row_pointers)
- HeapFree(GetProcessHeap(), 0, row_pointers);
+ HeapFree(GetProcessHeap(), 0, row_pointers);
return hr;
}
--
2.20.1
More information about the wine-devel
mailing list