1. Ronald Oussoren
  2. pyobjc-3.0-unstable

Commits

Ronald Oussoren  committed 6c38219

Remove unnecessary INCREF calls

  • Participants
  • Parent commits 052cdbd
  • Branches core-cleanup

Comments (0)

Files changed (1)

File pyobjc-core/Modules/objc/opaque-pointer.m

View file
  • Ignore whitespace
     Py_INCREF(Py_TYPE(&(newType->ht_type)));
     PyType_Ready((PyTypeObject*)newType);
 
-    /* XXX: This doesn't seem right... */
-#if 1
-    Py_INCREF((PyObject*)newType);
-    Py_INCREF((PyObject*)newType);
-    Py_INCREF((PyObject*)newType);
-#endif
-
     rv = ffi_prep_closure(cl, convert_cif, opaque_to_c, newType);
     if (rv != FFI_OK) {
         PyErr_Format(PyExc_RuntimeError,