diff options
| author | Simon Feltman <sfeltman@src.gnome.org> | 2013-04-19 06:37:24 -0700 |
|---|---|---|
| committer | Simon Feltman <sfeltman@src.gnome.org> | 2013-05-07 05:00:02 -0700 |
| commit | a703217eaf4075e9720d4247351e1dfc4f553772 (patch) | |
| tree | c23284999597282eac937e5d51b7ad617833984a /gi/pygi-boxed.c | |
| parent | 87e41db2e060acd689a2ac043bc1ac51007de6f3 (diff) | |
| download | pygobject-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-boxed.c')
| -rw-r--r-- | gi/pygi-boxed.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gi/pygi-boxed.c b/gi/pygi-boxed.c index cac2b0d8..5bf2c196 100644 --- a/gi/pygi-boxed.c +++ b/gi/pygi-boxed.c @@ -32,10 +32,6 @@ _boxed_dealloc (PyGIBoxed *self) { GType g_type; - PyObject_GC_UnTrack ( (PyObject *) self); - - PyObject_ClearWeakRefs ( (PyObject *) self); - if ( ( (PyGBoxed *) self)->free_on_dealloc) { if (self->slice_allocated) { g_slice_free1 (self->size, ( (PyGBoxed *) self)->boxed); |
