Fix double retain of child trees
This commit is contained in:
parent
5f27550a7a
commit
0cf59913ae
3 changed files with 18 additions and 4 deletions
|
|
@ -82,7 +82,6 @@ void ts_tree_set_children(TSTree *self, size_t child_count, TSTree **children) {
|
|||
self->visible_child_count = 0;
|
||||
for (size_t i = 0; i < child_count; i++) {
|
||||
TSTree *child = children[i];
|
||||
ts_tree_retain(child);
|
||||
|
||||
if (i == 0) {
|
||||
self->padding = child->padding;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue