GNOME Bugzilla – Bug 698379
JsonBuilder doesn't take ownership of added JsonNode
Last modified: 2017-09-05 10:39:33 UTC
In both valid add cases in the json_builder_add_value function, the value's ownership is fully transferred. See: * json_object_set_member * json_array_add_element Hence, shouldn't the builder itself take the ownership of the node?
the JsonBuilder API is a convenience wrapper around the low-level Node, Object, and Array API; the Builder only retains minimal state. the documentation should probably be more clear about it, though. care to write a patch?
-- 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/json-glib/issues/6.