diff --git a/libs/ardour/auditioner.cc b/libs/ardour/auditioner.cc index cf070a8ca4..1a08d40cde 100644 --- a/libs/ardour/auditioner.cc +++ b/libs/ardour/auditioner.cc @@ -146,9 +146,9 @@ Auditioner::unload_synth (bool need_lock) if (!asynth) { return; } - remove_processor (asynth, NULL, need_lock); - asynth->drop_references (); - asynth.reset (); + if (0 == remove_processor (asynth, NULL, need_lock)) { + asynth.reset (); + } } int