13
0

VST3: fix failed c'tor case

~VST3PI() may call terminate() w/o a VST3 component.
This commit is contained in:
Robin Gareus 2020-11-20 19:48:39 +01:00
parent a329de9d2f
commit a1f40979bd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1210,7 +1210,9 @@ VST3PI::terminate ()
_controller->release ();
}
_component->release ();
if (_component) {
_component->release ();
}
_controller = 0;
_component = 0;