summaryrefslogtreecommitdiffstats
path: root/libpyside
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-18 11:02:03 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2010-11-19 15:15:12 -0300
commit5e0550446c3546beb4a7076a80a7475b394567f4 (patch)
tree4709c72e275bdc1c54c914ccedfa11ec07af200e /libpyside
parent098946263932e115bdbca17eb51c3a27848435e2 (diff)
downloadpyside-5e0550446c3546beb4a7076a80a7475b394567f4.tar.gz
pyside-5e0550446c3546beb4a7076a80a7475b394567f4.tar.xz
pyside-5e0550446c3546beb4a7076a80a7475b394567f4.zip
Updated to new shiboken API.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'libpyside')
-rw-r--r--libpyside/pyside.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libpyside/pyside.cpp b/libpyside/pyside.cpp
index 7866fc6..803f41d 100644
--- a/libpyside/pyside.cpp
+++ b/libpyside/pyside.cpp
@@ -117,12 +117,10 @@ void destroyQCoreApplication()
foreach (SbkObject* pyObj, bm.getAllPyObjects()) {
if (pyObj != pyQApp && PyObject_TypeCheck(pyObj, pyQObjectType)) {
if (Shiboken::Wrapper::hasOwnership(pyObj)) {
- bm.destroyWrapper(pyObj);
- delete static_cast<QObject*>(Shiboken::Wrapper::cppPointer(pyObj, Shiboken::SbkType<QObject*>()));
+ Shiboken::callCppDestructor<QObject*>(Shiboken::Wrapper::cppPointer(pyObj, Shiboken::SbkType<QObject*>()));
}
}
}
- app->flush();
delete app;
}