Increase reference count when returning Py_None

This commit is contained in:
Thomas Krijnen
2013-07-22 20:06:52 -07:00
parent 10657416ea
commit 3bc3331983
+1
View File
@@ -54,6 +54,7 @@
const Argument& arg = *($1.second);
const ArgumentType type = $1.first;
if (arg.isNull()) {
Py_INCREF(Py_None);
$result = Py_None;
} else {
switch(type) {