diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index f617b4f44b..133bc72883 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -4969,7 +4969,7 @@ ProcessorBox::selection_added (ProcessorEntry& pe) /* be explicit here about the fact that we're using a weak pointer, even though we probably don't need to be. */ - std::weak_ptr wpi; + std::weak_ptr wpi = pi; ControlProtocol::PluginSelected (wpi); } }