diff --git a/libs/pbd/pbd/memento_command.h b/libs/pbd/pbd/memento_command.h index 6150ea111d..22b2d4a42d 100644 --- a/libs/pbd/pbd/memento_command.h +++ b/libs/pbd/pbd/memento_command.h @@ -127,7 +127,8 @@ public: } void binder_dying () { - delete this; + /* delegate to UndoTransaction::command_death */ + drop_references (); } void operator() () {