Correct None refcount issue in Mac modules. (Are they

still used?)
This commit is contained in:
Georg Brandl 2006-05-28 21:57:35 +00:00
parent c26025c562
commit 5f6861df93
5 changed files with 5 additions and 5 deletions

View file

@ -475,7 +475,7 @@ class FSCatalogInfoDefinition(PEP253Mixin, ObjectDefinition):
self.argref = "*" # Store FSSpecs, but pass them by address
def outputCheckNewArg(self):
Output("if (itself == NULL) return Py_None;")
Output("if (itself == NULL) { Py_INCREF(Py_None); return Py_None; }")
def output_tp_newBody(self):
Output("PyObject *self;");