Fix double retain of child trees

This commit is contained in:
Max Brunsfeld 2016-01-28 23:15:22 -08:00
parent 5f27550a7a
commit 0cf59913ae
3 changed files with 18 additions and 4 deletions

View file

@ -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;