[Bug 36171] valgrind shows several leaks in winmm/waveform.c