mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 14:45:43 +01:00
Auditioner: check if removing synth succeeds
remove_processor() also calls drop_references, when successful.
This commit is contained in:
parent
948c5d0706
commit
01e0472481
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue