mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
trigger: remove the timer hook pointer during the last timer call
This commit is contained in:
@@ -414,7 +414,8 @@ trigger_unhook (struct t_trigger *trigger)
|
||||
{
|
||||
for (i = 0; i < trigger->hooks_count; i++)
|
||||
{
|
||||
weechat_unhook (trigger->hooks[i]);
|
||||
if (trigger->hooks[i])
|
||||
weechat_unhook (trigger->hooks[i]);
|
||||
}
|
||||
free (trigger->hooks);
|
||||
trigger->hooks = NULL;
|
||||
|
||||
Reference in New Issue
Block a user