plug some memory leaks in libardour

This commit is contained in:
Robin Gareus 2016-04-24 14:41:07 +02:00
parent c4c6c38dbd
commit e3607a4c8b
8 changed files with 42 additions and 26 deletions

View file

@ -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;
}
}