diff options
author | Ken Moore <ken@ixsystems.com> | 2016-10-11 07:49:34 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-10-11 07:49:34 -0400 |
commit | a68cd74ded1278b94f75248c9d38dedbe969f7e6 (patch) | |
tree | acf25ec06cc4f9083e3350de98b2e4607806b605 | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-a68cd74ded1278b94f75248c9d38dedbe969f7e6.tar.gz lumina-a68cd74ded1278b94f75248c9d38dedbe969f7e6.tar.bz2 lumina-a68cd74ded1278b94f75248c9d38dedbe969f7e6.zip |
Move a couple "delete" calls to "deleteLater()" within the desktop.
-rw-r--r-- | src-qt5/core/lumina-desktop/LSession.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp index 434bfd2d..9a985b3f 100644 --- a/src-qt5/core/lumina-desktop/LSession.cpp +++ b/src-qt5/core/lumina-desktop/LSession.cpp @@ -70,11 +70,11 @@ LSession::~LSession(){ if(this->isPrimaryProcess()){ //WM->stopWM(); for(int i=0; i<DESKTOPS.length(); i++){ - delete DESKTOPS[i]; + DESKTOPS[i]->deleteLater(); } //delete WM; - delete settingsmenu; - delete appmenu; + settingsmenu->deleteLater(); + appmenu->deleteLater(); delete currTranslator; if(mediaObj!=0){delete mediaObj;} } @@ -207,7 +207,7 @@ void LSession::CleanupSession(){ } evFilter->StopEventHandling(); //Stop the window manager - qDebug() << " - Stopping the window manager"; + //qDebug() << " - Stopping the window manager"; //WM->stopWM(); //Now close down the desktop qDebug() << " - Closing down the desktop elements"; |