MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / hoedown_document_free

Function hoedown_document_free

libraries/hoedown/src/document.c:2943–2958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2941}
2942
2943void
2944hoedown_document_free(hoedown_document *doc)
2945{
2946 size_t i;
2947
2948 for (i = 0; i < (size_t)doc->work_bufs[BUFFER_SPAN].asize; ++i)
2949 hoedown_buffer_free(doc->work_bufs[BUFFER_SPAN].item[i]);
2950
2951 for (i = 0; i < (size_t)doc->work_bufs[BUFFER_BLOCK].asize; ++i)
2952 hoedown_buffer_free(doc->work_bufs[BUFFER_BLOCK].item[i]);
2953
2954 hoedown_stack_uninit(&doc->work_bufs[BUFFER_SPAN]);
2955 hoedown_stack_uninit(&doc->work_bufs[BUFFER_BLOCK]);
2956
2957 free(doc);
2958}

Callers 1

~HoeDownMethod · 0.85

Calls 2

hoedown_buffer_freeFunction · 0.85
hoedown_stack_uninitFunction · 0.85

Tested by

no test coverage detected