1
0
mirror of https://github.com/tmux/tmux.git synced 2025-03-24 23:08:47 +00:00

Free fill character string if it cannot be used, GitHub issue 4394.

This commit is contained in:
nicm 2025-03-04 08:03:19 +00:00
parent 91c0de60b4
commit 3543d79048

View File

@ -1759,6 +1759,8 @@ window_set_fill_character(struct window *w)
ud = utf8_fromcstr(value);
if (ud != NULL && ud[0].width == 1)
w->fill_character = ud;
else
free(ud);
}
}