diff options
| author | James Henstridge <james@daa.com.au> | 2001-09-30 13:11:58 +0000 |
|---|---|---|
| committer | James Henstridge <jamesh@src.gnome.org> | 2001-09-30 13:11:58 +0000 |
| commit | 670349eb2f4acd6a9291fb0ed57283fb999653c8 (patch) | |
| tree | b5e607488b88a34fd59d5e1f9ca100e2844f8ed8 /gobject | |
| parent | bb47037a5f9371603235dc2b9c0a444cc728a434 (diff) | |
| download | pygobject-670349eb2f4acd6a9291fb0ed57283fb999653c8.tar.gz pygobject-670349eb2f4acd6a9291fb0ed57283fb999653c8.tar.xz pygobject-670349eb2f4acd6a9291fb0ed57283fb999653c8.zip | |
(pygobject_new): GC track wrappers created through pygobject_new.
2001-09-30 James Henstridge <james@daa.com.au>
(pygobject_new): GC track wrappers created through pygobject_new.
Diffstat (limited to 'gobject')
| -rw-r--r-- | gobject/gobjectmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 2b040eb..e49c64f 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -325,6 +325,8 @@ pygobject_new(GObject *obj) /* save wrapper pointer so we can access it later */ g_object_set_qdata(obj, pygobject_wrapper_key, self); + PyObject_GC_Track((PyObject *)self); + return (PyObject *)self; } |
