diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2021-10-09 15:44:58 +0000 |
---|---|---|
committer | tallua <talluay@gmail.com> | 2021-10-09 15:44:58 +0000 |
commit | ea90392f5f12e03a47c0bec60a755423b12d05bd (patch) | |
tree | b4ca4cf54c255310c68c5634b93a0f4d2ed2f81c /json-glib/json-node.c | |
parent | 6bb246d8c937638e695a91af31ddf156eb8be43b (diff) | |
download | json-glib-ea90392f5f12e03a47c0bec60a755423b12d05bd.tar.gz |
Apply 1 suggestion(s) to 1 file(s)
Diffstat (limited to 'json-glib/json-node.c')
-rw-r--r-- | json-glib/json-node.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |