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:
+1
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user