13
0

delete tempo map at appropriate times

This commit is contained in:
Paul Davis 2015-04-01 10:58:56 -04:00
parent 36140d4d01
commit 73f967c330
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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));