https://bugs.winehq.org/show_bug.cgi?id=40734
--- Comment #2 from Andrew Eikum aeikum@codeweavers.com --- This happens because we're holding a chunk of memory from pa_stream_peek that we don't release until we've finished copying it in a later call to pulse_rd_loop. That later call never happens, so the memory reference is never released, and PA refuses to shutdown until we let it go.
Probably we should just copy the unused portion and never hold a reference between pulse_rd_loop calls.