diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-02-19 19:15:14 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-02-19 19:15:14 +0100 |
commit | 205a8695988a7fb88057884f14886a3471cb7de2 (patch) | |
tree | 52e6621f34d6cac180582f6673f3c6d3ad39decd /src/gui/gui-buffer.c | |
parent | 508bfe5c7a6f70a1ea9da42acc4b46bb638051c1 (diff) | |
download | weechat-205a8695988a7fb88057884f14886a3471cb7de2.zip |
core: fix memory leak when closing buffer
Diffstat (limited to 'src/gui/gui-buffer.c')
-rw-r--r-- | src/gui/gui-buffer.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c index 0a95598a6..8a06a8223 100644 --- a/src/gui/gui-buffer.c +++ b/src/gui/gui-buffer.c @@ -2185,12 +2185,16 @@ gui_buffer_close (struct t_gui_buffer *buffer) free (buffer->mixed_lines); /* free some data */ - if (buffer->title) - free (buffer->title); + if (buffer->plugin_name_for_upgrade) + free (buffer->plugin_name_for_upgrade); if (buffer->name) free (buffer->name); + if (buffer->full_name) + free (buffer->full_name); if (buffer->short_name) free (buffer->short_name); + if (buffer->title) + free (buffer->title); if (buffer->input_buffer) free (buffer->input_buffer); gui_buffer_undo_free_all (buffer); |