13
0

fix missing initialization of two Session members, which fixes a crash during quit-without-finished-session

This commit is contained in:
Paul Davis 2013-09-16 10:23:37 -04:00
parent 4d503c2053
commit 910755b51b

View File

@ -258,6 +258,8 @@ Session::Session (AudioEngine &eng,
, _suspend_timecode_transmission (0)
, _speakers (new Speakers)
, ignore_route_processor_changes (false)
, _midi_ports (0)
, _mmc (0)
{
uint32_t sr = 0;
@ -496,9 +498,9 @@ Session::destroy ()
/* not strictly necessary, but doing it here allows the shared_ptr debugging to work */
playlists.reset ();
delete _mmc;
delete _midi_ports;
delete _locations;
delete _mmc; _mmc = 0;
delete _midi_ports; _midi_ports = 0;
delete _locations; _locations = 0;
DEBUG_TRACE (DEBUG::Destruction, "Session::destroy() done\n");