While listening to audio using a bluetooth headset on my Macbook Air, if I turn off bluetooth completely I get a crash in juce_mac_CoreAudio.cpp in updateDetailsFromDevice() on the line bufferSizes.clear():
SonicWeb(6702,0x7fff7a217180) malloc: *** error for object 0x10229d1b0: pointer being freed was not allocated
This happens everytime I am turning off bluetooth of the Mac while using a bluetooth headset. It seems the CoreAudioIODevice is not happy that the complete audio device is going away.
There is no crash when turning of the bluetooth headset itself.