mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 01:03:14 +02:00
core: fix memory leak when a window is destroyed (free coords)
This commit is contained in:
@@ -919,6 +919,10 @@ gui_window_free (struct t_gui_window *window)
|
||||
/* remove scroll list */
|
||||
gui_window_scroll_free_all (window);
|
||||
|
||||
/* free coords */
|
||||
if (window->coords)
|
||||
free (window->coords);
|
||||
|
||||
/* remove window from windows list */
|
||||
if (window->prev_window)
|
||||
(window->prev_window)->next_window = window->next_window;
|
||||
|
||||
Reference in New Issue
Block a user