summaryrefslogtreecommitdiffstats
path: root/PySide/QtGui/glue/qapplication_init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'PySide/QtGui/glue/qapplication_init.cpp')
-rw-r--r--PySide/QtGui/glue/qapplication_init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtGui/glue/qapplication_init.cpp b/PySide/QtGui/glue/qapplication_init.cpp
index 5c87af3..00e37b1 100644
--- a/PySide/QtGui/glue/qapplication_init.cpp
+++ b/PySide/QtGui/glue/qapplication_init.cpp
@@ -8,7 +8,7 @@ void DeleteQApplicationAtExit() {
if (QApplication::instance()) {
//disconnect and decref all widgets used on signals before destroy qApp
PySide::SignalManager::instance().clear();
- delete QApplication::instance();
+ QApplication::instance()->deleteLater();
for (int i = 0; i < QApplicationArgCount; ++i)
delete[] QApplicationArgValues[i];
}