mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
plugins: remove check of NULL pointers before calling weechat_unhook() (issue #865)
This commit is contained in:
@@ -605,8 +605,7 @@ alias_free (struct t_alias *alias)
|
||||
alias_remove_from_list (alias);
|
||||
|
||||
/* free data */
|
||||
if (alias->hook)
|
||||
weechat_unhook (alias->hook);
|
||||
weechat_unhook (alias->hook);
|
||||
free (alias->name);
|
||||
free (alias->command);
|
||||
free (alias->completion);
|
||||
|
||||
Reference in New Issue
Block a user