diff --git a/libs/ardour/session_command.cc b/libs/ardour/session_command.cc index f8a5a62956..5e545e3086 100644 --- a/libs/ardour/session_command.cc +++ b/libs/ardour/session_command.cc @@ -147,6 +147,10 @@ Session::memento_command_factory(XMLNode *n) /* we failed */ info << string_compose (_("Could not reconstitute MementoCommand from XMLNode. object type = %1 id = %2"), type_name, id.to_s()) << endmsg; + delete after; + delete before; + delete child; + return 0 ; }