summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/pbd/memento_command.h3
1 files changed, 2 insertions, 1 deletions
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() () {