mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
tui: Fix use after free(reported by clang static analyzer)
This commit is contained in:
parent
59fb8f8172
commit
761ccba86f
@ -182,8 +182,8 @@ static void tui_stop(UI *ui)
|
|||||||
pmap_free(cstr_t)(data->option_cache);
|
pmap_free(cstr_t)(data->option_cache);
|
||||||
destroy_screen(data);
|
destroy_screen(data);
|
||||||
free(data);
|
free(data);
|
||||||
free(ui);
|
|
||||||
ui_detach(ui);
|
ui_detach(ui);
|
||||||
|
free(ui);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void try_resize(Event ev)
|
static void try_resize(Event ev)
|
||||||
|
Loading…
Reference in New Issue
Block a user