Michael Stefaniuc : windowscodecs: Remove redundant NULL check before HeapFree().
Module: wine Branch: master Commit: eb271ec4ba6855271bd06256f89e94211e5ea191 URL: https://source.winehq.org/git/wine.git/?a=commit;h=eb271ec4ba6855271bd06256f... Author: Michael Stefaniuc <mstefani(a)winehq.org> Date: Tue Jan 29 20:38:08 2019 +0100 windowscodecs: Remove redundant NULL check before HeapFree(). Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)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; }
participants (1)
-
Alexandre Julliard