src/json.c

changeset 1012
21884374edbb
parent 1009
7650e722437e
child 1014
56eb7da4f3e1
--- a/src/json.c	Sun Dec 15 11:11:16 2024 +0100
+++ b/src/json.c	Sun Dec 15 12:19:21 2024 +0100
@@ -633,8 +633,7 @@
 }
 
 void cxJsonValueFree(CxJsonValue *value) {
-    if (value == NULL || value == &cx_json_value_nothing) return;
-
+    if (value == NULL || value->type == CX_JSON_NOTHING) return;
     switch (value->type) {
         case CX_JSON_OBJECT: {
             CxJsonObject obj = value->value.object;

mercurial