Drop release functions from callback structs

The caller can just as easily take care of the cleanup explicitly
This commit is contained in:
Max Brunsfeld 2015-09-08 23:24:33 -07:00
parent 7ee5eaa16a
commit ebd60213d9
10 changed files with 29 additions and 51 deletions

View file

@ -14,8 +14,6 @@ TSDocument *ts_document_make() {
void ts_document_free(TSDocument *document) {
ts_parser_destroy(&document->parser);
if (document->input.release_fn)
document->input.release_fn(document->input.data);
if (document->tree)
ts_tree_release(document->tree);
free(document);