Ensure reference count of new tree copy is 1

This commit is contained in:
Max Brunsfeld 2016-04-15 23:01:36 -07:00
parent d55df29e49
commit f62e0a3d49

View file

@ -79,6 +79,7 @@ TSTree *ts_tree_make_copy(TSTree *self) {
return NULL;
*result = *self;
result->ref_count = 1;
return result;
}