13
0

evoral: Sequence::clear() needs to remove patch changes and sysexes too

This commit is contained in:
Paul Davis 2022-10-31 14:17:58 -06:00
parent fded5063d9
commit f4a57f83e6

View File

@ -624,6 +624,8 @@ Sequence<Time>::clear()
{ {
WriteLock lock(write_lock()); WriteLock lock(write_lock());
_notes.clear(); _notes.clear();
_sysexes.clear ();
_patch_changes.clear ();
for (Controls::iterator li = _controls.begin(); li != _controls.end(); ++li) for (Controls::iterator li = _controls.begin(); li != _controls.end(); ++li)
li->second->list()->clear(); li->second->list()->clear();
} }