From a251ba3b7687cb9c5f606356f33b9fb6d6748534 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 9 May 2022 11:56:25 -0500 Subject: [PATCH] pt_import: since we aren't using undo here, need to delete the diff_command manually --- libs/ardour/import_pt.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/import_pt.cc b/libs/ardour/import_pt.cc index 285a26ebdd..4fdf520e84 100644 --- a/libs/ardour/import_pt.cc +++ b/libs/ardour/import_pt.cc @@ -462,6 +462,7 @@ no_audio_tracks: midicmd->add (boost::shared_ptr > (new Evoral::Note ((uint8_t)1, start, len, j->note, j->velocity))); } mm->apply_diff_command_only (*this, midicmd); + delete midicmd; boost::shared_ptr copy (RegionFactory::create (mr, true)); playlist->clear_changes (); playlist->add_region (copy, timepos_t (f));