VST3: explicitly close and release view

A call to VST3Plugin::has_editor() can create the view of
a plugin. If the GUI is never displayed, the view would
not have been released, which can lead to crashes when
unloading the plugin.
This commit is contained in:
Robin Gareus
2020-10-02 15:29:04 +02:00
parent 3c4801bc96
commit 05d2a0f4a4

View File

@@ -1106,6 +1106,8 @@ VST3PI::unit_data ()
void
VST3PI::terminate ()
{
close_view ();
/* disable all MIDI busses */
set_event_bus_state (false);