From cd9aa35f680ac11be96ecc955be0c14e59877c4f Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Fri, 8 Jul 2016 10:06:30 +0200 Subject: [PATCH] winepulse: Remove a redundant NULL check before HeapFree(). Signed-off-by: Michael Stefaniuc Signed-off-by: Andrew Eikum Signed-off-by: Alexandre Julliard --- dlls/winepulse.drv/mmdevdrv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c index 1c38e582040..5bf534e1e9d 100644 --- a/dlls/winepulse.drv/mmdevdrv.c +++ b/dlls/winepulse.drv/mmdevdrv.c @@ -1443,8 +1443,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient *iface, exit: if (FAILED(hr)) { - if(This->local_buffer) - HeapFree(GetProcessHeap(), 0, This->local_buffer); + HeapFree(GetProcessHeap(), 0, This->local_buffer); This->local_buffer = NULL; if (This->stream) { pa_stream_disconnect(This->stream);