| 555 if (json->vbuf != json->vbuf_internal) { |
555 if (json->vbuf != json->vbuf_internal) { |
| 556 cxFreeDefault(json->vbuf); |
556 cxFreeDefault(json->vbuf); |
| 557 } |
557 } |
| 558 cxJsonValueFree(json->parsed); |
558 cxJsonValueFree(json->parsed); |
| 559 json->parsed = NULL; |
559 json->parsed = NULL; |
| |
560 token_destroy(&json->uncompleted); |
| 560 cx_strfree_a(json->allocator, &json->uncompleted_member_name); |
561 cx_strfree_a(json->allocator, &json->uncompleted_member_name); |
| 561 } |
562 } |
| 562 |
563 |
| 563 void cxJsonReset(CxJson *json) { |
564 void cxJsonReset(CxJson *json) { |
| 564 const CxAllocator *allocator = json->allocator; |
565 const CxAllocator *allocator = json->allocator; |