summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/auditioner.cc6
1 files 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