From ea90392f5f12e03a47c0bec60a755423b12d05bd Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 9 Oct 2021 15:44:58 +0000 Subject: Apply 1 suggestion(s) to 1 file(s) --- json-glib/json-node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json-glib/json-node.c') diff --git a/json-glib/json-node.c b/json-glib/json-node.c index f0bff28..e5c631e 100644 --- a/json-glib/json-node.c +++ b/json-glib/json-node.c @@ -143,7 +143,7 @@ json_node_unset (JsonNode *node) case JSON_NODE_OBJECT: if (node->data.object) json_object_unref (node->data.object); - node->data.object = NULL; + g_clear_pointer (&(node->data.object), json_object_unref); break; case JSON_NODE_ARRAY: -- cgit v1.2.1