diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-16 10:23:37 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-09-16 10:23:37 -0400 |
commit | 910755b51ba38ded5913270c601d7cdb1f38c884 (patch) | |
tree | 6628a3272998654f09fbfcae69b0dea05d2e380e /libs/ardour | |
parent | 4d503c20539e465fb88bdba5edfb23d999c31539 (diff) |
fix missing initialization of two Session members, which fixes a crash during quit-without-finished-session
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/session.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index e2deb71639..5187679c40 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -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"); |