1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: fix double call to hook config when an option is unset

This commit is contained in:
Sébastien Helleu
2023-11-04 07:37:12 +01:00
parent 028902b0e3
commit c90c71ea30
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ New features::
Bug fixes::
* core: call hook config when options are freed by unset or when file/section is freed
* core: call hook config when options are removed
* core: display an error with command `/history N` when N is not a valid integer
* core: fix memory leak when config version is invalid or not supported
* core: fix crash when "config_version" is present in a configuration file without a value
+1 -1
View File
@@ -2232,7 +2232,7 @@ config_file_option_unset (struct t_config_option *option)
}
else
{
config_file_option_free (option, 1);
config_file_option_free (option, 0);
rc = WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
}