Crash when converting MIDI 1 to MIDI 2

The lambda in question is in a system framework, not provided by JUCE. If the lambda is getting deallocated, there’s not much we can do about it in JUCE. As far as I can tell, JUCE only calls the host-provided MIDI output callback at points where it is valid to do so.

Based on the response here, it sounds like this is confirmed as a bug in CoreAudio (linking here to keep both threads in sync).