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