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

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


Just like Maarten's patch in the wave test.

Fixes the valgrind error
http://kegel.com/wine/valgrind/logs-2008-05-25/vg-winmm_capture.txt
 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 : http://www.winehq.org/pipermail/wine-patches/attachments/20080526/eada3cfb/attachment.patch 


More information about the wine-patches mailing list