Drop release functions from callback structs
The caller can just as easily take care of the cleanup explicitly
This commit is contained in:
parent
7ee5eaa16a
commit
ebd60213d9
10 changed files with 29 additions and 51 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue