[Zodb-checkins] CVS: StandaloneZODB/ExtensionClass/src - Acquisition.c:1.58
Jeremy Hylton
jeremy@zope.com
Mon, 10 Jun 2002 18:31:30 -0400
Update of /cvs-repository/StandaloneZODB/ExtensionClass/src
In directory cvs.zope.org:/tmp/cvs-serv3025/ExtensionClass/src
Modified Files:
Acquisition.c
Log Message:
Call _Py_NewReference() for wrappers allocated from the free list.
=== StandaloneZODB/ExtensionClass/src/Acquisition.c 1.57 => 1.58 ===
self=freeWrappers;
freeWrappers=(Wrapper*)self->obj;
+ _Py_NewReference((PyObject *)self);
+ assert(self->ob_refcnt == 1);
self->ob_type=Wrappertype;
- self->ob_refcnt=1;
nWrappers--;
}
else