mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
selection: modify: no need to check for NULL before calling free()
This commit is contained in:
parent
02fbd0bbce
commit
636fea55f5
1 changed files with 1 additions and 4 deletions
|
|
@ -574,11 +574,8 @@ selection_modify(struct terminal *term, struct coord start, struct coord end)
|
|||
foreach_selected(term, start, end, &mark_selected, &ctx);
|
||||
render_refresh(term);
|
||||
|
||||
for (size_t i = 0; i < term->grid->num_rows; i++) {
|
||||
if (keep_selection[i] == NULL)
|
||||
continue;
|
||||
for (size_t i = 0; i < term->grid->num_rows; i++)
|
||||
free(keep_selection[i]);
|
||||
}
|
||||
free(keep_selection);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue