Ensure reference count of new tree copy is 1
This commit is contained in:
parent
d55df29e49
commit
f62e0a3d49
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ TSTree *ts_tree_make_copy(TSTree *self) {
|
|||
return NULL;
|
||||
|
||||
*result = *self;
|
||||
result->ref_count = 1;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue