PortAudio / portaudio

PortAudio is a cross-platform, open-source C language library for real-time audio input and output.
Other
1.46k stars 303 forks source link

pulseaudio: fix PaPulseAudio_Initialize unlocking #852

Closed illuusio closed 9 months ago

illuusio commented 11 months ago

When PaPulseAudio_Initialize fails it does not currently do it very well as bug report #848 tells. Now Only free lock if it's initialized enough to be unlocked.

Unlocking is done after allocations are done. That is because Locking is just after allocations and next goto error should have allocated memory and drop to that. Also now Group freeing code is one place.

Resolves #848

kleinerm commented 11 months ago

@illuusio Changes look good to me. I also gave it a quick test and it worked.