Michael Stefaniuc : windowscodecs: Remove redundant NULL check before HeapFree().

Alexandre Julliard julliard at winehq.org
Thu Jan 31 14:50:13 CST 2019


Module: wine
Branch: master
Commit: eb271ec4ba6855271bd06256f89e94211e5ea191
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=eb271ec4ba6855271bd06256f89e94211e5ea191

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Tue Jan 29 20:38:08 2019 +0100

windowscodecs: Remove redundant NULL check before HeapFree().

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard 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 faffeae..db0fa9e 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;
 }




More information about the wine-cvs mailing list