diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-09-30 17:14:23 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-09-30 17:14:23 +0200 |
commit | 01327b1b8f8448277c93ddfc4d289b45086f92d2 (patch) | |
tree | 154dc41e70fcf91da9acac1bf305b9b5a5b8e5fc | |
parent | dab231a9a3e40857c438f18795ffd0b43abddaee (diff) | |
download | weechat-01327b1b8f8448277c93ddfc4d289b45086f92d2.zip |
core: fix memory leak when a window is destroyed (free coords)
-rw-r--r-- | src/gui/gui-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c index c1283ad70..7dd9d87a1 100644 --- a/src/gui/gui-window.c +++ b/src/gui/gui-window.c @@ -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; |