Update of /cvs-repository/Cruft/ExtensionClass/src
In directory cvs.zope.org:/tmp/cvs-serv13461/lib/Components/ExtensionClass/src

Modified Files:
      Tag: Zope-2_7-branch
        Acquisition.c 
Log Message:


  - Collector #1799: Avoid lying about parent's refcount when
    calling back into Python code.


=== Cruft/ExtensionClass/src/Acquisition.c 1.61.4.2 => 1.61.4.3 ===
--- Cruft/ExtensionClass/src/Acquisition.c:1.61.4.2     Sat Apr  9 03:13:19 2005
+++ Cruft/ExtensionClass/src/Acquisition.c      Thu Jun  2 23:27:25 2005
@@ -145,9 +145,9 @@
 
   UNLESS(r=PyObject_GetAttr(inst, py__of__)) return NULL;
   UNLESS(t=PyTuple_New(1)) goto err;
+  Py_INCREF(parent);
   PyTuple_SET_ITEM(t,0,parent);
   ASSIGN(r,PyObject_CallObject(r,t));
-  PyTuple_SET_ITEM(t,0,NULL);
   Py_DECREF(t);
 
   if (r 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to