13
0

Auditioner: check if removing synth succeeds

remove_processor() also calls drop_references, when successful.
This commit is contained in:
Robin Gareus 2018-11-24 02:01:16 +01:00
parent 948c5d0706
commit 01e0472481

View File

@ -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