mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
plugins: remove check of NULL pointers before calling weechat_config_option_free() (issue #865)
This commit is contained in:
@@ -1230,8 +1230,7 @@ trigger_free (struct t_trigger *trigger)
|
||||
free (trigger->name);
|
||||
for (i = 0; i < TRIGGER_NUM_OPTIONS; i++)
|
||||
{
|
||||
if (trigger->options[i])
|
||||
weechat_config_option_free (trigger->options[i]);
|
||||
weechat_config_option_free (trigger->options[i]);
|
||||
}
|
||||
weechat_string_free_split (trigger->commands);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user