From a5d7b748d9b4581d8c43f858be0bbdf377cd6d64 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 23 Mar 2001 06:14:28 +0000 Subject: Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev). --- Modules/_weakref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_weakref.c b/Modules/_weakref.c index 5bdab4d..399b4fe 100644 --- a/Modules/_weakref.c +++ b/Modules/_weakref.c @@ -59,7 +59,6 @@ clear_weakref(PyWeakReference *self) if (self->wr_object != Py_None) { PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); - PyObject_GC_Fini((PyObject *)self); if (*list == self) *list = self->wr_next; self->wr_object = Py_None; @@ -79,6 +78,7 @@ static void weakref_dealloc(PyWeakReference *self) { clear_weakref(self); + PyObject_GC_Fini((PyObject *)self); self->wr_next = free_list; free_list = self; } -- cgit v0.12