summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2017-12-06 14:43:09 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2017-12-06 14:43:09 +0000
commit321290367025b2eb0f223cdb578dbef0ba633860 (patch)
tree08ab1e6d38fe9728a500229dc7f228850824132e
parent76a3c8ea488750898d5c6469a490eb8790f813cb (diff)
parent0df2466103ff706e980e82cd560232fdd2ba1baa (diff)
downloadjson-glib-321290367025b2eb0f223cdb578dbef0ba633860.tar.gz
Merge branch 'json-node-autoptr' into 'master'
node: Use json_node_unref for the JsonNode autoptr cleanup See merge request GNOME/json-glib!5
-rw-r--r--json-glib/json-types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/json-types.h b/json-glib/json-types.h
index d845f94..cd18c66 100644
--- a/json-glib/json-types.h
+++ b/json-glib/json-types.h
@@ -517,7 +517,7 @@ gboolean json_array_equal (gconstpointer a,
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonArray, json_array_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonObject, json_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonNode, json_node_free)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonNode, json_node_unref)
#endif
G_END_DECLS