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.
This commit is contained in:
parent
8b40f6d9e5
commit
fa8a45c845
1 changed files with 1 additions and 1 deletions
|
|
@ -2546,7 +2546,7 @@ static PaError CloseStream( PaStream* s )
|
||||||
|
|
||||||
if( stream->inputUnit )
|
if( stream->inputUnit )
|
||||||
{
|
{
|
||||||
Boolean isInput = FALSE;
|
Boolean isInput = TRUE;
|
||||||
CleanupDevicePropertyListeners( stream, stream->inputDevice, isInput );
|
CleanupDevicePropertyListeners( stream, stream->inputDevice, isInput );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue