From: philburk Date: Thu, 18 Aug 2011 08:44:03 +0000 (+0000) Subject: Fix removal of device property change listeners. X-Git-Tag: pa_stable_v19_20111121_r1788~41 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=fa8a45c845abba02b2b9a9d4e51ac14b270b6298;p=portaudio Fix removal of device property change listeners. This may fix some occasional memory corruption isses we were seeing in the loopback test. I think the listeners may have gotten called after the stream was freed. --- diff --git a/src/hostapi/coreaudio/pa_mac_core.c b/src/hostapi/coreaudio/pa_mac_core.c index 9939be1..0ebf20d 100644 --- a/src/hostapi/coreaudio/pa_mac_core.c +++ b/src/hostapi/coreaudio/pa_mac_core.c @@ -2546,7 +2546,7 @@ static PaError CloseStream( PaStream* s ) if( stream->inputUnit ) { - Boolean isInput = FALSE; + Boolean isInput = TRUE; CleanupDevicePropertyListeners( stream, stream->inputDevice, isInput ); }