[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees - BTreeTemplate.c:1.1.2.25 BucketTemplate.c:1.1.2.24
Jeremy Hylton
jeremy@zope.com
Fri, 7 Jun 2002 10:02:02 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv5760
Modified Files:
Tag: Zope-3x-branch
BTreeTemplate.c BucketTemplate.c
Log Message:
Guarantee that po_dm is NULL before calling _xxx_clear() in dealloc.
=== Zope3/lib/python/Persistence/BTrees/BTreeTemplate.c 1.1.2.24 => 1.1.2.25 ===
Py_XDECREF(self->po_oid);
Py_XDECREF(self->po_serial);
+ self->po_dm = NULL;
if (self->po_state != GHOST)
_BTree_clear(self);
PyObject_GC_Del(self);
=== Zope3/lib/python/Persistence/BTrees/BucketTemplate.c 1.1.2.23 => 1.1.2.24 ===
Py_XDECREF(self->po_oid);
Py_XDECREF(self->po_serial);
+ self->po_dm = NULL;
if (self->po_state != GHOST)
_bucket_clear(self);
PyObject_GC_Del(self);