change API for GainControl, VCA and VCAManager
[ardour.git] / libs / ardour / auditioner.cc
index fe84a2d717b884bda0d980152fd9eaf20ef1597f..33f74faf8037eb557a015f9b5a0feaf85b41ea65 100644 (file)
@@ -85,13 +85,17 @@ Auditioner::init ()
 
 Auditioner::~Auditioner ()
 {
+       if (asynth) {
+               asynth->drop_references ();
+       }
+       asynth.reset ();
 }
 
 void
 Auditioner::lookup_synth ()
 {
        string plugin_id = Config->get_midi_audition_synth_uri();
-       asynth = boost::shared_ptr<Processor>();
+       asynth.reset ();
        if (!plugin_id.empty()) {
                boost::shared_ptr<Plugin> p;
                p = find_plugin (_session, plugin_id, ARDOUR::LV2);