allow to customize variable i/o plugin inputs
[ardour.git] / libs / ardour / processor.cc
index 315fb6662e1ac2bcf944f103943ff74b97683354..d3ffe152cb7d24534cf2c742fcac553c5a86a221 100644 (file)
@@ -64,6 +64,7 @@ Processor::Processor(Session& session, const string& name)
        , _pre_fader (false)
        , _ui_pointer (0)
        , _window_proxy (0)
+       , _pinmgr_proxy (0)
        , _owner (0)
 {
 }
@@ -81,6 +82,7 @@ Processor::Processor (const Processor& other)
        , _pre_fader (false)
        , _ui_pointer (0)
        , _window_proxy (0)
+       , _pinmgr_proxy (0)
        , _owner (0)
 {
 }
@@ -124,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;
                }
        }
 
@@ -277,12 +281,6 @@ Processor::set_ui (void* p)
        _ui_pointer = p;
 }
 
-void
-Processor::set_window_proxy (ProcessorWindowProxy* wp)
-{
-       _window_proxy = wp;
-}
-
 void
 Processor::set_owner (SessionObject* o)
 {