diff --git a/steam-runtime-tools/json-glib-compat.h b/steam-runtime-tools/json-glib-compat.h
index 658bad757fb055694361c715ce5aed5584a4ab09..b01b6e68c385dde0f9b5bf7c716b840f15b51406 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