1
0
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:
Sebastien Helleu
2011-09-30 17:14:23 +02:00
parent dab231a9a3
commit 01327b1b8f
+4
View File
@@ -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;