http://bugs.winehq.org/show_bug.cgi?id=27531
--- Comment #7 from Andrew Eikum aeikum@codeweavers.com 2011-06-20 09:30:49 CDT --- Created an attachment (id=35211) --> (http://bugs.winehq.org/attachment.cgi?id=35211) mmdevapi: Fix refcounts in IAudioClient::GetService
This is an updated version of the patch for Bug 27511. Commit 6dac4d713ce9b introduced the bug. In 6dac4d713ce9b, we allow NULL clients in AudioSessionWrappers, and so we need to check that we have a valid client before trying to release it in IAudioSessionControl::Release. The other drivers do that correctly, but I missed adding the check to winecoreaudio. This patch adds it, in addition to fixing the other refcounting bug from 27511.