summaryrefslogtreecommitdiff
path: root/gi/pygi-struct.c
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2013-04-19 06:37:24 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2013-05-07 05:00:02 -0700
commita703217eaf4075e9720d4247351e1dfc4f553772 (patch)
treec23284999597282eac937e5d51b7ad617833984a /gi/pygi-struct.c
parent87e41db2e060acd689a2ac043bc1ac51007de6f3 (diff)
downloadpygobject-a703217eaf4075e9720d4247351e1dfc4f553772.tar.gz
Remove half implemented GC in PyGIBaseInfo, PyGIStruct, and PyGIBoxed
Remove half implemented GC tracking from PyGIBaseInfo as it was not needed (the implemented was also missing usage of PyObject_GC_New/Track). Ensure weakref list for PyGIBaseInfo is initialized to NULL and cleared properly. Remove invalid calls to PyObject_GC_UnTrack and PyObject_ClearWeakRefs for both PyGIStruct and PyGIBoxed as these types were not being advertised as GC aware with Py_TPFLAGS_HAVE_GC. https://bugzilla.gnome.org/show_bug.cgi?id=677091
Diffstat (limited to 'gi/pygi-struct.c')
-rw-r--r--gi/pygi-struct.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gi/pygi-struct.c b/gi/pygi-struct.c
index eace77c1..29ea38e8 100644
--- a/gi/pygi-struct.c
+++ b/gi/pygi-struct.c
@@ -34,10 +34,6 @@ _struct_dealloc (PyGIStruct *self)
(PyObject *) self,
&PyGIStructInfo_Type);
- PyObject_GC_UnTrack ( (PyObject *) self);
-
- PyObject_ClearWeakRefs ( (PyObject *) self);
-
if (info != NULL && g_struct_info_is_foreign ( (GIStructInfo *) info)) {
pygi_struct_foreign_release (info, ( (PyGPointer *) self)->pointer);
} else if (self->free_on_dealloc) {