GNOME Bugzilla – Bug 745336
Should regress_test_array_int_inout free the given list?
Last modified: 2018-02-08 12:33:01 UTC
Given these annotations: /** * regress_test_array_int_inout: * @n_ints: (inout): the length of @ints * @ints: (inout) (array length=n_ints) (transfer full): ... */ void regress_test_array_int_inout (int *n_ints, int **ints) I expect regress_test_array_int_inout to free *ints prior to overwriting it. But it doesn't. Should it?
Similarly, shouldn't gi_marshalling_tests_garray_utf8_full_inout and gi_marshalling_tests_gptrarray_utf8_full_inout free the elements of the given arrays? /** * gi_marshalling_tests_garray_utf8_full_inout: * @array_: (inout) (element-type utf8) (transfer full): */ void gi_marshalling_tests_garray_utf8_full_inout (GArray **array_) /** * gi_marshalling_tests_gptrarray_utf8_full_inout: * @parray_: (inout) (element-type utf8) (transfer full): */ void gi_marshalling_tests_gptrarray_utf8_full_inout (GPtrArray **parray_)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/124.