summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-09-30 11:13:35 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-09-30 11:13:35 +0000
commitbb47037a5f9371603235dc2b9c0a444cc728a434 (patch)
tree34324a3b14385161cd27a69ad5d8f7cb7f7eb7cd /gobject
parentcacfb471789ec3633083fcd57b133a3753d6a8fd (diff)
downloadpygobject-bb47037a5f9371603235dc2b9c0a444cc728a434.tar.gz
pygobject-bb47037a5f9371603235dc2b9c0a444cc728a434.tar.xz
pygobject-bb47037a5f9371603235dc2b9c0a444cc728a434.zip
use plain old PyObject_GC_Del, as the overridden tp_free seems to ignore
2001-09-30 James Henstridge <james@daa.com.au> * gobjectmodule.c (pygobject_dealloc): use plain old PyObject_GC_Del, as the overridden tp_free seems to ignore the GC header.
Diffstat (limited to 'gobject')
-rw-r--r--gobject/gobjectmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 0d1d6e8..2b040eb 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -1107,7 +1107,9 @@ pygobject_dealloc(PyGObject *self)
Py_DECREF(self->inst_dict);
self->inst_dict = NULL;
- self->ob_type->tp_free((PyObject *)self);
+ /* the following causes problems with subclassed types */
+ /*self->ob_type->tp_free((PyObject *)self); */
+ PyObject_GC_Del(self);
}
static int