mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 01:09:56 +10:00
Merge pull request #20055 from famiu/fix/ui-attach/memory-leak
fix(ui): ui compositor does not correctly free event callbacks
This commit is contained in:
@@ -98,7 +98,7 @@ void ui_comp_free_all_mem(void)
|
||||
{
|
||||
UIEventCallback *event_cb;
|
||||
map_foreach_value(&ui_event_cbs, event_cb, {
|
||||
xfree(event_cb);
|
||||
free_ui_event_callback(event_cb);
|
||||
})
|
||||
pmap_destroy(uint32_t)(&ui_event_cbs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user