From fa8a45c845abba02b2b9a9d4e51ac14b270b6298 Mon Sep 17 00:00:00 2001 From: philburk Date: Thu, 18 Aug 2011 08:44:03 +0000 Subject: [PATCH] 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. --- src/hostapi/coreaudio/pa_mac_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.43.0