summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index f4a4918e..11135c82 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -3042,7 +3042,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;
}