winmm: Plug a memory leak.
This commit is contained in:
parent
3026d8844c
commit
d1737cc24b
|
@ -834,4 +834,10 @@ void MMDRV_Exit(void)
|
|||
MMDRV_ExitPerType(&MMDrvs[i], MMDRV_WAVEOUT);
|
||||
CloseDriver(MMDrvs[i].hDriver, 0, 0);
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, llTypes[MMDRV_AUX].lpMlds - 1);
|
||||
HeapFree(GetProcessHeap(), 0, llTypes[MMDRV_MIXER].lpMlds - 1);
|
||||
HeapFree(GetProcessHeap(), 0, llTypes[MMDRV_MIDIIN].lpMlds - 1);
|
||||
HeapFree(GetProcessHeap(), 0, llTypes[MMDRV_MIDIOUT].lpMlds - 1);
|
||||
HeapFree(GetProcessHeap(), 0, llTypes[MMDRV_WAVEIN].lpMlds - 1);
|
||||
HeapFree(GetProcessHeap(), 0, llTypes[MMDRV_WAVEOUT].lpMlds - 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue