From e3607a4c8bbe68714600cb3849abee0c20d0047c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 24 Apr 2016 14:41:07 +0200 Subject: plug some memory leaks in libardour --- libs/ardour/processor.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/processor.cc') 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; } } -- cgit v1.2.3