mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix some recursive undo removal
~StatefulDiffCommand() may trigger UndoTransaction::command_death() which may delete the StatefulDiffCommand() that's just being destroyed. This depends on the signal-connection order, which is undefined. In any case when a shared_ptr<> object is being destroyed it means that all references to it are already gone. There's no need to emit drop_references from the d'tor.
This commit is contained in:
parent
bf3a36a126
commit
4b28e4ee3c
2 changed files with 0 additions and 3 deletions
|
|
@ -120,7 +120,6 @@ public:
|
|||
}
|
||||
|
||||
~MementoCommand () {
|
||||
drop_references ();
|
||||
delete before;
|
||||
delete after;
|
||||
delete _binder;
|
||||
|
|
|
|||
|
|
@ -68,8 +68,6 @@ StatefulDiffCommand::StatefulDiffCommand (boost::shared_ptr<StatefulDestructible
|
|||
|
||||
StatefulDiffCommand::~StatefulDiffCommand ()
|
||||
{
|
||||
drop_references ();
|
||||
|
||||
delete _changes;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue