From 01e0472481a24da992f018aaf6de9d9fa6d11536 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 24 Nov 2018 02:01:16 +0100 Subject: [PATCH] Auditioner: check if removing synth succeeds remove_processor() also calls drop_references, when successful. --- libs/ardour/auditioner.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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