mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Fix double free of undo commands (amend 9e6435ff14)
This fixes a case when deleting a plugin, deletes all automation
undo/redo events:
<UndoTransaction name="add automation event">
<MementoCommand type-name="ARDOUR::AutomationList">
...
`delete this;` calls the d'tor which emits drop_references(),
that leads to UndoTransaction::command_death() destroying the
object, whichh causes a double free.
This commit is contained in:
parent
54911a0ee2
commit
73c5bdd3cb
1 changed files with 2 additions and 1 deletions
|
|
@ -127,7 +127,8 @@ public:
|
|||
}
|
||||
|
||||
void binder_dying () {
|
||||
delete this;
|
||||
/* delegate to UndoTransaction::command_death */
|
||||
drop_references ();
|
||||
}
|
||||
|
||||
void operator() () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue