mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
delete tempo map at appropriate times
This commit is contained in:
parent
36140d4d01
commit
73f967c330
2 changed files with 3 additions and 0 deletions
|
|
@ -576,6 +576,8 @@ Session::destroy ()
|
|||
delete _midi_ports; _midi_ports = 0;
|
||||
delete _locations; _locations = 0;
|
||||
|
||||
delete _tempo_map;
|
||||
|
||||
DEBUG_TRACE (DEBUG::Destruction, "Session::destroy() done\n");
|
||||
|
||||
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
|
||||
|
|
|
|||
|
|
@ -237,6 +237,7 @@ Session::post_engine_init ()
|
|||
try {
|
||||
/* tempo map requires sample rate knowledge */
|
||||
|
||||
delete _tempo_map;
|
||||
_tempo_map = new TempoMap (_current_frame_rate);
|
||||
_tempo_map->PropertyChanged.connect_same_thread (*this, boost::bind (&Session::tempo_map_changed, this, _1));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue