1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 10:13:12 +02:00

Fix 14 memory leaks (in core, gui, irc, jabber, logger, script plugins)

This commit is contained in:
Sebastien Helleu
2009-02-04 14:12:46 +01:00
parent aeb11f7e05
commit 7cc562be45
11 changed files with 33 additions and 12 deletions
+6
View File
@@ -423,6 +423,12 @@ gui_window_free (struct t_gui_window *window)
gui_bar_window_free (window->bar_windows, window);
}
/* free other data */
if (window->layout_plugin_name)
free (window->layout_plugin_name);
if (window->layout_buffer_name)
free (window->layout_buffer_name);
/* remove window from windows list */
if (window->prev_window)
(window->prev_window)->next_window = window->next_window;