summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-29 18:02:31 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-29 18:16:26 -0300
commitfa87b811adbe0930523c927adcdeaf8272fbf865 (patch)
tree63f765b0ba455cf7fb08c38087fb42b50c90a728
parent492ac5c64ca75fbed346d3b13b3b0dd99c140910 (diff)
downloadpyside-fa87b811adbe0930523c927adcdeaf8272fbf865.tar.gz
pyside-fa87b811adbe0930523c927adcdeaf8272fbf865.tar.xz
pyside-fa87b811adbe0930523c927adcdeaf8272fbf865.zip
Fix bug#388 - "Fatal Python error: PyEval_SaveThread: NULL tstate"
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r--PySide/QtGui/glue/qapplication_init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtGui/glue/qapplication_init.cpp b/PySide/QtGui/glue/qapplication_init.cpp
index 246e5d1..be90d10 100644
--- a/PySide/QtGui/glue/qapplication_init.cpp
+++ b/PySide/QtGui/glue/qapplication_init.cpp
@@ -21,9 +21,9 @@ void DeleteQApplicationAtExit()
bmngr.destroyWrapper(w);
}
- cpp->deleteLater();
- QApplication::processEvents();
+ cpp->processEvents();
bmngr.destroyWrapper(cpp);
+ delete cpp;
}
}