mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +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 _midi_ports; _midi_ports = 0;
|
||||||
delete _locations; _locations = 0;
|
delete _locations; _locations = 0;
|
||||||
|
|
||||||
|
delete _tempo_map;
|
||||||
|
|
||||||
DEBUG_TRACE (DEBUG::Destruction, "Session::destroy() done\n");
|
DEBUG_TRACE (DEBUG::Destruction, "Session::destroy() done\n");
|
||||||
|
|
||||||
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
|
#ifdef BOOST_SP_ENABLE_DEBUG_HOOKS
|
||||||
|
|
|
||||||
|
|
@ -237,6 +237,7 @@ Session::post_engine_init ()
|
||||||
try {
|
try {
|
||||||
/* tempo map requires sample rate knowledge */
|
/* tempo map requires sample rate knowledge */
|
||||||
|
|
||||||
|
delete _tempo_map;
|
||||||
_tempo_map = new TempoMap (_current_frame_rate);
|
_tempo_map = new TempoMap (_current_frame_rate);
|
||||||
_tempo_map->PropertyChanged.connect_same_thread (*this, boost::bind (&Session::tempo_map_changed, this, _1));
|
_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