winmm: Use HeapAlloc in the capture test instead of using strdup.

Dan Kegel dank at
Mon May 26 12:12:46 CDT 2008

Just like Maarten's patch in the wave test.

Fixes the valgrind error
 Mismatched free() / delete / delete []
    at  RtlFreeHeap (heap.c:1287)
    by  wave_in_test_device (capture.c:397)
  Address 0x440cc90 is 0 bytes inside a block of size 14 alloc'd
    at  malloc (vg_replace_malloc.c:207)
    by  wave_in_test_device (capture.c:388)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmm.patch
Type: text/x-diff
Size: 572 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list