mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 22:55:29 +00:00
Fix #10729
This commit is contained in:
parent
07c8731470
commit
89db933a24
2 changed files with 6 additions and 0 deletions
|
|
@ -450,6 +450,9 @@ Detailed list of changes
|
|||
or too thick when zoomed out. At the configured :opt:`font_size` nothing
|
||||
changes (:iss:`10362`)
|
||||
|
||||
- Fix a use-after-free that could cause a crash when reloading the config after
|
||||
changing font settings (:iss:`10729`)
|
||||
|
||||
|
||||
|
||||
0.49.2 [2026-10-01]
|
||||
|
|
|
|||
|
|
@ -573,6 +573,9 @@ init_font(Font *f, PyObject *face, bool bold, bool italic, bool emoji_presentati
|
|||
static void
|
||||
free_font_groups(void) {
|
||||
if (font_groups) {
|
||||
// Clear dangling pointers into font_groups, otherwise the next call to
|
||||
// save_window_font_groups() would read freed memory
|
||||
for (size_t o = 0; o < global_state.num_os_windows; o++) global_state.os_windows[o].fonts_data = NULL;
|
||||
for (size_t i = 0; i < num_font_groups; i++) del_font_group(font_groups + i);
|
||||
free(font_groups);
|
||||
font_groups = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue