pt_import: since we aren't using undo here, need to delete the diff_command manually

This commit is contained in:
Ben Loftis 2022-05-09 11:56:25 -05:00
parent 5f6f01a8e2
commit a251ba3b76
1 changed files with 1 additions and 0 deletions

View File

@ -462,6 +462,7 @@ no_audio_tracks:
midicmd->add (boost::shared_ptr<Evoral::Note<Temporal::Beats> > (new Evoral::Note<Temporal::Beats> ((uint8_t)1, start, len, j->note, j->velocity)));
}
mm->apply_diff_command_only (*this, midicmd);
delete midicmd;
boost::shared_ptr<Region> copy (RegionFactory::create (mr, true));
playlist->clear_changes ();
playlist->add_region (copy, timepos_t (f));