diff options
Diffstat (limited to 'src/plugins/exec/exec.c')
-rw-r--r-- | src/plugins/exec/exec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/exec/exec.c b/src/plugins/exec/exec.c index e0d91804b..8d7d4a1f5 100644 --- a/src/plugins/exec/exec.c +++ b/src/plugins/exec/exec.c @@ -635,8 +635,7 @@ exec_free (struct t_exec_cmd *exec_cmd) last_exec_cmd = exec_cmd->prev_cmd; /* free data */ - if (exec_cmd->hook) - weechat_unhook (exec_cmd->hook); + weechat_unhook (exec_cmd->hook); free (exec_cmd->name); free (exec_cmd->command); free (exec_cmd->buffer_full_name); |