aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LPanel.cpp')
-rw-r--r--lumina-desktop/LPanel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/LPanel.cpp b/lumina-desktop/LPanel.cpp
index b0ead2e0..2940482c 100644
--- a/lumina-desktop/LPanel.cpp
+++ b/lumina-desktop/LPanel.cpp
@@ -67,7 +67,7 @@ void LPanel::prepareToClose(){
for(int i=0; i<PLUGINS.length(); i++){
PLUGINS[i]->AboutToClose(); //any last cleanup for this plugin
layout->takeAt(i); //remove from the layout
- delete PLUGINS.takeAt(i); //delete the actual widget
+ PLUGINS.takeAt(i)->deleteLater(); //delete the actual widget
LSession::processEvents();
i--; //need to back up one space to not miss another plugin
}
@@ -262,7 +262,7 @@ void LPanel::UpdatePanel(bool geomonly){
static_cast<LSysTray*>(PLUGINS[i])->stop();
}
layout->takeAt(i); //remove from the layout
- delete PLUGINS.takeAt(i); //delete the actual widget
+ PLUGINS.takeAt(i)->deleteLater(); //delete the actual widget
LSession::processEvents();
i--; //need to back up one space to not miss another plugin
}
bgstack15