[BZ#698379] JsonBuilder doesn't take ownership of added JsonNode
Submitted by <<d91..@..com>>
Assigned to json-glib-maint@gnome.bugs
Link to original bug (#698379)
Description
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?