The PortMidi queue just holds a pointer to the midi events. The same Midi events are free()d during WavesMidiBuffer::clear() which is called at cycle start for every buffer and in the dtor of the WavesMidiBuffer.
The PortMidi queue just holds a pointer to the midi events. The same Midi events are free()d during WavesMidiBuffer::clear() which is called at cycle start for every buffer and in the dtor of the WavesMidiBuffer.