Commit 34b0161d authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

winealsa: Do not check for non-NULL before HeapFree'ing a variable as the check is redundant.

parent 5f62da10
......@@ -505,10 +505,8 @@ static void ALSA_MixerInit(void)
eclose:
WARN("Error occured initialising mixer: %s\n", snd_strerror(err));
if (mixdev[mixnum].lines)
HeapFree(GetProcessHeap(), 0, mixdev[mixnum].lines);
if (mixdev[mixnum].controls)
HeapFree(GetProcessHeap(), 0, mixdev[mixnum].controls);
HeapFree(GetProcessHeap(), 0, mixdev[mixnum].lines);
HeapFree(GetProcessHeap(), 0, mixdev[mixnum].controls);
snd_mixer_close(mixdev[mixnum].mix);
}
cards = mixnum;
......@@ -649,8 +647,7 @@ static DWORD WINAPI ALSA_MixerPollThread(LPVOID lParam)
die:
TRACE("Shutting down\n");
if (pfds)
HeapFree(GetProcessHeap(), 0, pfds);
HeapFree(GetProcessHeap(), 0, pfds);
y = read(msg_pipe[0], &x, sizeof(x));
close(msg_pipe[1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment