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:
parent
abb221fa81
commit
da5dfe7e80
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue