grid: grid_row_free(): use grid_row_reset_extra()

This commit is contained in:
Daniel Eklöf 2021-02-14 20:34:25 +01:00
parent 3e06362d74
commit 17f90eeec4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

8
grid.c
View file

@ -51,13 +51,7 @@ grid_row_free(struct row *row)
if (row == NULL)
return;
if (row->extra != NULL) {
tll_foreach(row->extra->uri_ranges, it) {
free(it->item.uri);
tll_remove(row->extra->uri_ranges, it);
}
}
grid_row_reset_extra(row);
free(row->extra);
free(row->cells);
free(row);