mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
core: remove check of NULL pointers before calling string_free_split_tags() (issue #865)
This commit is contained in:
@@ -3740,11 +3740,9 @@ gui_buffer_close (struct t_gui_buffer *buffer)
|
||||
free (buffer->highlight_regex_compiled);
|
||||
}
|
||||
free (buffer->highlight_tags_restrict);
|
||||
if (buffer->highlight_tags_restrict_array)
|
||||
string_free_split_tags (buffer->highlight_tags_restrict_array);
|
||||
string_free_split_tags (buffer->highlight_tags_restrict_array);
|
||||
free (buffer->highlight_tags);
|
||||
if (buffer->highlight_tags_array)
|
||||
string_free_split_tags (buffer->highlight_tags_array);
|
||||
string_free_split_tags (buffer->highlight_tags_array);
|
||||
free (buffer->input_callback_data);
|
||||
free (buffer->close_callback_data);
|
||||
free (buffer->nickcmp_callback_data);
|
||||
|
||||
@@ -542,8 +542,7 @@ gui_filter_free (struct t_gui_filter *filter)
|
||||
free (filter->buffer_name);
|
||||
string_free_split (filter->buffers);
|
||||
free (filter->tags);
|
||||
if (filter->tags_array)
|
||||
string_free_split_tags (filter->tags_array);
|
||||
string_free_split_tags (filter->tags_array);
|
||||
free (filter->regex);
|
||||
if (filter->regex_prefix)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user