diff --git a/frame/window/mainpanelcontrol.cpp b/frame/window/mainpanelcontrol.cpp index 24a834111..7abfc3533 100755 --- a/frame/window/mainpanelcontrol.cpp +++ b/frame/window/mainpanelcontrol.cpp @@ -302,6 +302,8 @@ void MainPanelControl::removePluginAreaItem(QWidget *wdg) if (boxLayout && boxLayout->itemAt(0)->widget() == wdg) { boxLayout->removeWidget(wdg); m_pluginLayout->removeItem(layoutItem); + delete layoutItem; + layoutItem = nullptr; } } } diff --git a/plugins/sound/soundaccessible.h b/plugins/sound/soundaccessible.h index 699ece981..d89bde7b7 100644 --- a/plugins/sound/soundaccessible.h +++ b/plugins/sound/soundaccessible.h @@ -14,9 +14,9 @@ QAccessibleInterface *soundAccessibleFactory(const QString &classname, QObject * { QAccessibleInterface *interface = nullptr; - USE_ACCESSIBLE(classname, SoundItem); - USE_ACCESSIBLE(classname, SoundApplet); - USE_ACCESSIBLE(classname, VolumeSlider); + USE_ACCESSIBLE(classname, SoundItem) + ELSE_USE_ACCESSIBLE(classname, SoundApplet) + ELSE_USE_ACCESSIBLE(classname, VolumeSlider); return interface; }