mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
grid: add grid_row_uri_range_destroy()
This commit is contained in:
parent
1868fa27e4
commit
25d43bd4c3
1 changed files with 7 additions and 1 deletions
8
grid.h
8
grid.h
|
|
@ -78,6 +78,12 @@ grid_row_in_view(struct grid *grid, int row_no)
|
|||
|
||||
void grid_row_add_uri_range(struct row *row, struct row_uri_range range);
|
||||
|
||||
static inline void
|
||||
grid_row_uri_range_destroy(struct row_uri_range *range)
|
||||
{
|
||||
free(range->uri);
|
||||
}
|
||||
|
||||
static inline void
|
||||
grid_row_reset_extra(struct row *row)
|
||||
{
|
||||
|
|
@ -85,7 +91,7 @@ grid_row_reset_extra(struct row *row)
|
|||
return;
|
||||
|
||||
tll_foreach(row->extra->uri_ranges, it) {
|
||||
free(it->item.uri);
|
||||
grid_row_uri_range_destroy(&it->item);
|
||||
tll_remove(row->extra->uri_ranges, it);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue