summaryrefslogtreecommitdiffstats
path: root/PySide/QtCore
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-12-09 15:02:46 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2011-12-09 15:03:44 -0200
commit5cbd9c775e8b53a21fa66b3fe7afc4a2b5c67437 (patch)
tree60dcd80bc03a58aeb0e9bf0dea9dc3237c6f765c /PySide/QtCore
parent0b36404fe5fb56731cf66d7156debbd7c87d2ab0 (diff)
downloadpyside-5cbd9c775e8b53a21fa66b3fe7afc4a2b5c67437.tar.gz
pyside-5cbd9c775e8b53a21fa66b3fe7afc4a2b5c67437.tar.xz
pyside-5cbd9c775e8b53a21fa66b3fe7afc4a2b5c67437.zip
Don't double decref variable causing an assertion error on debug builds.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'PySide/QtCore')
-rw-r--r--PySide/QtCore/typesystem_core.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml
index 63b0036..a07720a 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));