EffectView: fix crash when removing dummy effect plugin
If a certain effect plugin fails to load a dummy plugin is inserted instead which has no sub window and thus caused a crash in EffectView destructor.
This commit is contained in:
@@ -158,8 +158,11 @@ EffectView::~EffectView()
|
||||
|
||||
delete m_subWindow;
|
||||
#else
|
||||
// otherwise on win32 build VST GUI can get lost
|
||||
m_subWindow->hide();
|
||||
if( m_subWindow )
|
||||
{
|
||||
// otherwise on win32 build VST GUI can get lost
|
||||
m_subWindow->hide();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user