From 5d82ef0452cfdb2457a39e5ff44764f3b7e03410 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Thu, 19 Oct 2017 12:08:21 +1300 Subject: node: Use json_node_unref for the JsonNode autoptr cleanup json_node_unref was added after the autoptr macros were written. This fixes an assertion failure if using autoptr and json_node_ref. --- json-glib/json-types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1