mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
VST3: GUI d'tor re-order
We have to call close_view(), which calls IPlugView::removed() before destroying the parent widget. Previously ~VST3PluginUI() was called after the derived class destroyed the owned private `_gui_widget`, `_ns_view` or x11 parent. On windows that may lead to the hwnd of the window becoming invalid before the call to ::removed().
This commit is contained in:
parent
0d4ab880a8
commit
bbc54873ae
4 changed files with 6 additions and 2 deletions
|
|
@ -56,8 +56,6 @@ VST3PluginUI::VST3PluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_pt
|
|||
|
||||
VST3PluginUI::~VST3PluginUI ()
|
||||
{
|
||||
assert (_view_realized);
|
||||
_vst3->close_view ();
|
||||
}
|
||||
|
||||
gint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue