https://bugs.winehq.org/show_bug.cgi?id=36272
--- Comment #17 from Michael Stefaniuc mstefani@winehq.org --- Yeah, I was more looking for a working valgrind setup than for the actual leaks...
There's some oddity on how the ports are mapped on pchannels aka not refcounted. Needs more tests of course to see how native handles that. But basically the code has issue more so than the tests.
Test leaks could be worked around at the end with a while(IDirectMusicPort_Release(portX) > 0); But that just hides the issue.