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.
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