diff options
-rw-r--r-- | generator/cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index 07ef83713..013533e90 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -3044,7 +3044,7 @@ void CppGenerator::writeSignalInitialization(QTextStream& s, const AbstractMetaC s << ", NULL);" << endl; s << INDENT << "PySide::Signal::addSignalToWrapper(&" + cpythonTypeName(metaClass) + ", \""; s << funcName << "\", signal_item);" << endl; - s << INDENT << "Py_DECREF(signal_item);" << endl; + s << INDENT << "Py_DECREF((PyObject*) signal_item);" << endl; } s << endl; } |