diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-01-21 19:23:19 +0100 |
---|---|---|
committer | Mathieu Duponchelle <mathieu@centricular.com> | 2018-01-23 23:36:41 +0100 |
commit | daefdfa3e4dc97b4ae38250358d722f09764cc9b (patch) | |
tree | 555ebab5ba909f550db850686eeea199fd0cbfbd /gi/pygi-source.c | |
parent | b0fbb13783a2ece048a812b233e1fad15c5b8a31 (diff) | |
download | pygobject-daefdfa3e4dc97b4ae38250358d722f09764cc9b.tar.gz |
Revert "Refactor boxed wrapper memory management strategy"
This reverts commit 85175047e66dfc0c0263eac91d8056a95d0a60a0.
Diffstat (limited to 'gi/pygi-source.c')
-rw-r--r-- | gi/pygi-source.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gi/pygi-source.c b/gi/pygi-source.c index 5305260b..2ed38d37 100644 --- a/gi/pygi-source.c +++ b/gi/pygi-source.c @@ -241,10 +241,8 @@ pyg_source_new (void) source = (PyGRealSource*) g_source_new (&pyg_source_funcs, sizeof (PyGRealSource)); py_type = _pygi_type_import_by_name ("GLib", "Source"); - /* Full ownership transfer of the source, this will be free'd with g_boxed_free. */ - source->obj = _pygi_boxed_new ( (PyTypeObject *) py_type, source, - FALSE, /* copy_boxed */ - 0); /* slice_allocated */ + /* g_source_new uses malloc, not slices */ + source->obj = _pygi_boxed_new ( (PyTypeObject *) py_type, source, FALSE, 0); return source->obj; } |