[Zodb-checkins] CVS: Zope3/lib/python/Persistence - cPersistence.c:1.1.2.7

Jeremy Hylton jeremy@zope.com
Wed, 13 Feb 2002 19:26:38 -0500


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv23046

Modified Files:
      Tag: Zope-3x-branch
	cPersistence.c 
Log Message:
Track new po_dict in tp_dealloc, tp_traverse, and tp_clear.


=== Zope3/lib/python/Persistence/cPersistence.c 1.1.2.6 => 1.1.2.7 ===
     Py_XDECREF(self->po_oid);
     Py_XDECREF(self->po_serial);
+    Py_XDECREF(self->po_dict);
 }
 
 static int
@@ -494,6 +495,7 @@
     VISIT(self->po_dm);
     VISIT(self->po_oid);
     VISIT(self->po_serial);
+    VISIT(self->po_dict);
 #undef VISIT
     return 0;
 }
@@ -504,9 +506,11 @@
     Py_XDECREF(self->po_dm);
     Py_XDECREF(self->po_oid);
     Py_XDECREF(self->po_serial);
+    Py_XDECREF(self->po_dict);
     self->po_dm = NULL;
     self->po_oid = NULL;
     self->po_serial = NULL;
+    self->po_dict = NULL;
     return 0;
 }