delete tempo map at appropriate times
This commit is contained in:
parent
36140d4d01
commit
73f967c330
@ -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…
Reference in New Issue
Block a user