diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-24 14:41:07 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-24 14:43:18 +0200 |
commit | e3607a4c8bbe68714600cb3849abee0c20d0047c (patch) | |
tree | 8c93a2eb519ddd6ed33e1f6b51e42bebcab5f3cf /libs/ardour/processor.cc | |
parent | c4c6c38dbde32fa9478977740864f5c141dff092 (diff) |
plug some memory leaks in libardour
Diffstat (limited to 'libs/ardour/processor.cc')
-rw-r--r-- | libs/ardour/processor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/processor.cc b/libs/ardour/processor.cc index e55d31ce52..d3ffe152cb 100644 --- a/libs/ardour/processor.cc +++ b/libs/ardour/processor.cc @@ -126,6 +126,8 @@ Processor::state (bool full_state) XMLNode& automation = Automatable::get_automation_xml_state(); if (!automation.children().empty() || !automation.properties().empty()) { node->add_child_nocopy (automation); + } else { + delete &automation; } } |