Auditioner: check if removing synth succeeds
remove_processor() also calls drop_references, when successful.
This commit is contained in:
parent
948c5d0706
commit
01e0472481
@ -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…
Reference in New Issue
Block a user