From 18644bb65c8ddc856b49800312a0390489fa3e48 Mon Sep 17 00:00:00 2001 From: Ludovico de Nittis <ludovico.denittis@collabora.com> Date: Tue, 22 Sep 2020 12:15:19 +0200 Subject: [PATCH] json-glib-compat.h: Use the correct cleanup function for JsonArray Signed-off-by: Ludovico de Nittis <ludovico.denittis@collabora.com> --- steam-runtime-tools/json-glib-compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam-runtime-tools/json-glib-compat.h b/steam-runtime-tools/json-glib-compat.h index 658bad757..b01b6e68c 100644 --- a/steam-runtime-tools/json-glib-compat.h +++ b/steam-runtime-tools/json-glib-compat.h @@ -35,7 +35,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonGenerator, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonParser, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonPath, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonReader, g_object_unref) -G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonArray, array_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonArray, json_array_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonNode, json_node_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC (JsonObject, json_object_unref) #endif -- GitLab