Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-release-src > by-pkgid > c8329a4dbc64730b46462ca4a6afbe9f > files > 2

libyui-qt-2.46.26-1.mga6.src.rpm

diff --git a/src/YQUI.cc b/src/YQUI.cc
index 5d7bbc4..8eed329 100644
--- a/src/YQUI.cc
+++ b/src/YQUI.cc
@@ -347,7 +347,7 @@ YQUI::~YQUI()
     if ( qApp ) // might already be reset to 0 internally from Qt
     {
 	qApp->exit();
-	delete qApp;
+	qApp->deleteLater();
     }
 
     delete _signalReceiver;
@@ -359,7 +359,7 @@ YQUI::uiThreadDestructor()
     if ( qApp ) // might already be reset to 0 internally from Qt
     {
         qApp->exit();
-        delete qApp;
+	qApp->deleteLater();
     }
 }