diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-24 02:01:16 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-24 02:01:16 +0100 |
commit | 01e0472481a24da992f018aaf6de9d9fa6d11536 (patch) | |
tree | e49829a1e0d8bae8a06a9be6a68288f367e16d73 /libs/ardour/auditioner.cc | |
parent | 948c5d07065e862704da2d5f02207ed87ca821aa (diff) |
Auditioner: check if removing synth succeeds
remove_processor() also calls drop_references, when successful.
Diffstat (limited to 'libs/ardour/auditioner.cc')
-rw-r--r-- | libs/ardour/auditioner.cc | 6 |
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 |