mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
grid: grid_row_free(): use grid_row_reset_extra()
This commit is contained in:
parent
3e06362d74
commit
17f90eeec4
1 changed files with 1 additions and 7 deletions
8
grid.c
8
grid.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue