@ -125,7 +125,7 @@ PrimaryConfigView::~PrimaryConfigView()
delete m_secConfigView;
}
if (m_latteView->indicator()) {
if (m_latteView && m_latteView->indicator()) {
//! destroy indicator config ui when the configuration window is closed
m_latteView->indicator()->releaseConfigUi();
@ -31,6 +31,9 @@ ViewSettingsFactory::ViewSettingsFactory(QObject *parent)
ViewSettingsFactory::~ViewSettingsFactory()
{
if (m_primaryConfigView) {
delete m_primaryConfigView;
ViewPart::PrimaryConfigView *ViewSettingsFactory::primary(Latte::View *view)