mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-09 08:21:01 -04: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);
|
foreach_selected(term, start, end, &mark_selected, &ctx);
|
||||||
render_refresh(term);
|
render_refresh(term);
|
||||||
|
|
||||||
for (size_t i = 0; i < term->grid->num_rows; i++) {
|
for (size_t i = 0; i < term->grid->num_rows; i++)
|
||||||
if (keep_selection[i] == NULL)
|
|
||||||
continue;
|
|
||||||
free(keep_selection[i]);
|
free(keep_selection[i]);
|
||||||
}
|
|
||||||
free(keep_selection);
|
free(keep_selection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue