From f3fe31da27765ca77267c830e9f7376c1c222ca8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Dec 2021 13:37:44 -0700 Subject: [PATCH] session: fix for creation of new/default tempo map --- libs/ardour/session.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index b752068651..81ec82af3a 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -343,8 +343,8 @@ Session::Session (AudioEngine &eng, TempoMap::SharedPtr tmcopy (TempoMap::write_copy()); /* this discards the copy that was made, and installs the new default tempo map */ - tmcopy = new TempoMap(); - TempoMap::update (new_tempo_map); + tmcopy.reset (new TempoMap (Tempo (120, 4), Meter (4, 4))); + TempoMap::update (tmcopy); created_with = string_compose ("%1 %2", PROGRAM_NAME, revision);