Commit 3c0b9844 authored by Robert Ancell's avatar Robert Ancell Committed by Emmanuele Bassi

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.

(cherry picked from commit 0df24661)
Signed-off-by: default avatarEmmanuele Bassi <>
parent bb0f4769
......@@ -517,7 +517,7 @@ gboolean json_array_equal (gconstpointer a,
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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment