projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28c62bb
)
Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev).
author
Tim Peters
<tim.peters@gmail.com>
Fri, 23 Mar 2001 06:14:28 +0000
(06:14 +0000)
committer
Tim Peters
<tim.peters@gmail.com>
Fri, 23 Mar 2001 06:14:28 +0000
(06:14 +0000)
Modules/_weakref.c
patch
|
blob
|
history
diff --git
a/Modules/_weakref.c
b/Modules/_weakref.c
index 5bdab4dbc0ef96a082af7077f15828d5565dcd71..399b4fe67b55da0646c6446ebf90391b8fe35633 100644
(file)
--- 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;
}