[json-glib: 6/7] applied suggest change




commit 40996bfad16896b6e715c1d1bad5f72ec3125021
Author: tallua <talluay gmail com>
Date:   Sun Oct 10 00:55:51 2021 +0900

    applied suggest change

 json-glib/json-node.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/json-glib/json-node.c b/json-glib/json-node.c
index 57221c1..a344670 100644
--- a/json-glib/json-node.c
+++ b/json-glib/json-node.c
@@ -141,8 +141,6 @@ json_node_unset (JsonNode *node)
   switch (node->type)
     {
     case JSON_NODE_OBJECT:
-      if (node->data.object)
-        json_object_unref (node->data.object);
       g_clear_pointer (&(node->data.object), json_object_unref);
       break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]