src/json.c

changeset 943
9f1eb30dbc84
parent 942
8a5bbdb7f87f
child 944
c26299cc9897
equal deleted inserted replaced
942:8a5bbdb7f87f 943:9f1eb30dbc84
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;

mercurial