fix crash on MIDI unlearn for cue slot (bad iterator

This commit is contained in:
Paul Davis 2022-12-13 17:43:01 -07:00
parent eb1373404a
commit bd8c3af2a2
1 changed files with 1 additions and 0 deletions

View File

@ -4010,6 +4010,7 @@ TriggerBox::remove_custom_midi_binding (int x, int y)
for (CustomMidiMap::iterator i = _custom_midi_map.begin(); i != _custom_midi_map.end(); ++i) {
if (i->second.first == x && i->second.second == y) {
_custom_midi_map.erase (i);
break;
}
}
}