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

core: remove check of NULL pointers before calling weelist_free() (issue #865)

This commit is contained in:
Sébastien Helleu
2024-04-25 19:32:00 +02:00
parent a59fa70a94
commit ad33036fea
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -582,8 +582,7 @@ weechat_shutdown (int return_code, int crash)
free (weechat_runtime_dir);
free (weechat_local_charset);
free (weechat_force_plugin_autoload);
if (weechat_startup_commands)
weelist_free (weechat_startup_commands);
weelist_free (weechat_startup_commands);
free (weechat_doc_gen_path);
if (crash)
+1 -2
View File
@@ -2014,8 +2014,7 @@ gui_color_palette_free_structs ()
{
hashtable_free (gui_color_hash_palette_color);
hashtable_free (gui_color_hash_palette_alias);
if (gui_color_list_with_alias)
weelist_free (gui_color_list_with_alias);
weelist_free (gui_color_list_with_alias);
}
/*