1
0
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:
Sebastien Helleu
2014-01-31 16:18:03 +01:00
parent 1496c8a25c
commit a09e46f456
2 changed files with 16 additions and 2 deletions
+2 -1
View File
@@ -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;