From b8149c1d88a3517594c6acc604e99d3867272bea Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 28 Jan 2014 00:26:29 +0100 Subject: [PATCH] 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. --- src/gui/widgets/EffectView.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/EffectView.cpp b/src/gui/widgets/EffectView.cpp index 9b6b8cc05..d61adc966 100644 --- a/src/gui/widgets/EffectView.cpp +++ b/src/gui/widgets/EffectView.cpp @@ -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 }