Lines Matching refs:deallocate
142 void(CJSON_CDECL *deallocate)(void *pointer);
191 global_hooks.deallocate = free; in cJSON_InitHooks()
199 global_hooks.deallocate = free; in cJSON_InitHooks()
200 if (hooks->free_fn != NULL) global_hooks.deallocate = hooks->free_fn; in cJSON_InitHooks()
204 …if ((global_hooks.allocate == malloc) && (global_hooks.deallocate == free)) global_hooks.reallocat… in cJSON_InitHooks()
223 …if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) global_hooks.deallocate(item… in cJSON_Delete()
224 …if (!(item->type & cJSON_StringIsConst) && (item->string != NULL)) global_hooks.deallocate(item->s… in cJSON_Delete()
225 global_hooks.deallocate(item); in cJSON_Delete()
401 p->hooks.deallocate(p->buffer); in ensure()
411 p->hooks.deallocate(p->buffer); in ensure()
419 p->hooks.deallocate(p->buffer); in ensure()
717 if (output != NULL) input_buffer->hooks.deallocate(output); in parse_string()
983 hooks->deallocate(buffer->buffer); in print()
989 if (buffer->buffer != NULL) hooks->deallocate(buffer->buffer); in print()
991 if (printed != NULL) hooks->deallocate(printed); in print()
1025 global_hooks.deallocate(p.buffer); in cJSON_PrintBuffered()
1565 …if (!(item->type & cJSON_StringIsConst) && (item->string != NULL)) hooks->deallocate(item->string); in add_item_to_object()
2380 global_hooks.deallocate(object); in cJSON_free()