diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-12-09 15:02:46 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:18 -0300 |
commit | 720a6f4cadae3e0267749391648ace6ad3357125 (patch) | |
tree | 29b18bc09934627e794b3001153243ab78967339 /PySide | |
parent | 48669462d03e2646c659271686cf054777fcbb66 (diff) |
Don't double decref variable causing an assertion error on debug builds.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index a1a306817..d6f01dde0 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -405,7 +405,7 @@ { // Avoid name clash Shiboken::AutoDecRef atexit(Shiboken::Module::import("atexit")); Shiboken::AutoDecRef regFunc(PyObject_GetAttrString(atexit, "register")); - Shiboken::AutoDecRef shutDownFunc(PyObject_GetAttrString(module, "__moduleShutdown")); + PyObject* shutDownFunc = PyObject_GetAttrString(module, "__moduleShutdown"); Shiboken::AutoDecRef args(PyTuple_New(1)); PyTuple_SET_ITEM(args, 0, shutDownFunc); Shiboken::AutoDecRef retval(PyObject_Call(regFunc, args, 0)); |