From a1f40979bda052c20fb0beed72bf59c6361ccb82 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 20 Nov 2020 19:48:39 +0100 Subject: [PATCH] VST3: fix failed c'tor case ~VST3PI() may call terminate() w/o a VST3 component. --- libs/ardour/vst3_plugin.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index 2b2d7b99ac..bd7cd499a0 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -1210,7 +1210,9 @@ VST3PI::terminate () _controller->release (); } - _component->release (); + if (_component) { + _component->release (); + } _controller = 0; _component = 0;