windowscodecs: Remove a redundant NULL check before HeapFree().

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-08 10:06:02 +02:00 committed by Alexandre Julliard
parent abb221fa81
commit da5dfe7e80
1 changed files with 1 additions and 2 deletions

View File

@ -175,8 +175,7 @@ static ULONG WINAPI IcnsFrameEncode_Release(IWICBitmapFrameEncode *iface)
This->encoder->outstanding_commits--; This->encoder->outstanding_commits--;
LeaveCriticalSection(&This->encoder->lock); LeaveCriticalSection(&This->encoder->lock);
} }
if (This->icns_image != NULL) HeapFree(GetProcessHeap(), 0, This->icns_image);
HeapFree(GetProcessHeap(), 0, This->icns_image);
IWICBitmapEncoder_Release(&This->encoder->IWICBitmapEncoder_iface); IWICBitmapEncoder_Release(&This->encoder->IWICBitmapEncoder_iface);
HeapFree(GetProcessHeap(), 0, This); HeapFree(GetProcessHeap(), 0, This);