mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
winealsa: Do not check for non-NULL before HeapFree'ing a variable as the check is redundant.
This commit is contained in:
parent
5f62da109e
commit
34b0161d02
@ -505,9 +505,7 @@ 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);
|
||||
snd_mixer_close(mixdev[mixnum].mix);
|
||||
}
|
||||
@ -649,7 +647,6 @@ static DWORD WINAPI ALSA_MixerPollThread(LPVOID lParam)
|
||||
|
||||
die:
|
||||
TRACE("Shutting down\n");
|
||||
if (pfds)
|
||||
HeapFree(GetProcessHeap(), 0, pfds);
|
||||
|
||||
y = read(msg_pipe[0], &x, sizeof(x));
|
||||
|
Loading…
Reference in New Issue
Block a user