Delete CoreSelection at session close
This commit is contained in:
@@ -70,7 +70,9 @@ AutomationControl::AutomationControl(ARDOUR::Session& s
|
||||
|
||||
AutomationControl::~AutomationControl ()
|
||||
{
|
||||
_session.selection().remove_control_by_id (id());
|
||||
if (!_session.deletion_in_progress ()) {
|
||||
_session.selection().remove_control_by_id (id());
|
||||
}
|
||||
DropReferences (); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
|
||||
@@ -836,6 +836,10 @@ Session::destroy ()
|
||||
AudioEngine::instance()->clear_pending_port_deletions ();
|
||||
}
|
||||
|
||||
DEBUG_TRACE (DEBUG::Destruction, "delete selection\n");
|
||||
delete _selection;
|
||||
_selection = 0;
|
||||
|
||||
DEBUG_TRACE (DEBUG::Destruction, "Session::destroy() done\n");
|
||||
|
||||
BOOST_SHOW_POINTERS ();
|
||||
|
||||
@@ -44,7 +44,9 @@ Stripable::Stripable (Session& s, string const & name, PresentationInfo const &
|
||||
|
||||
Stripable::~Stripable ()
|
||||
{
|
||||
_session.selection().remove_stripable_by_id (id());
|
||||
if (!_session.deletion_in_progress ()) {
|
||||
_session.selection().remove_stripable_by_id (id());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user