668 |
668 |
669 void cxJsonDestroy(CxJson *p) { |
669 void cxJsonDestroy(CxJson *p) { |
670 free(p->states); |
670 free(p->states); |
671 free(p->readvalue_stack); |
671 free(p->readvalue_stack); |
672 cxJsonValueFree(p->read_value); |
672 cxJsonValueFree(p->read_value); |
|
673 free(p->value_name); |
|
674 free(p->value_str); |
673 } |
675 } |
674 |
676 |
675 void cxJsonFill(CxJson *p, const char *buf, size_t size) { |
677 void cxJsonFill(CxJson *p, const char *buf, size_t size) { |
676 // TODO: implement rescue buffer like in CxProperties to allow subsequent fills |
678 // TODO: implement rescue buffer like in CxProperties to allow subsequent fills |
677 p->buffer = buf; |
679 p->buffer = buf; |