From 14a929341efa2669fc377a0f25093e7dd35d1ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 8 Jul 2018 14:48:06 +0200 Subject: [PATCH] fset: fix memory leak when switching the format with ctrl-X --- ChangeLog.adoc | 1 + src/plugins/fset/fset-option.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index c2deb58a5..fc7c129f9 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -44,6 +44,7 @@ Bug fixes:: * core: fix delete of previous/next word (keys kbd:[Ctrl+w] and kbd:[Alt+d]) (issue #1195) * core: fix infinite loop in evaluation of strings (issue #1183) * core: change default value of option weechat.look.window_title from "WeeChat ${info:version}" to empty string (issue #1182) + * fset: fix memory leak when switching the format with kbd:[Ctrl+x] * fset: fix truncation of option values when the length is greater than 4096 (issue #1218) * fset: fix crash when applying filters after closing the fset buffer (issue #1204) * irc: display message 354 (WHOX) received with missing parameters (issue #1212) diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index 6b3e32f59..9067c094e 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -1430,6 +1430,7 @@ fset_option_config_changed (const char *option_name) /* option added: get options and refresh the whole buffer */ full_refresh = 1; } + fset_option_free (new_fset_option); } if (full_refresh)