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:
Tobias Doerffel
2014-01-28 00:26:29 +01:00
parent 2a1ec97113
commit b8149c1d88

View File

@@ -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
}