summaryrefslogtreecommitdiff
path: root/src/plugins/relay/relay-remote.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/relay/relay-remote.c')
-rw-r--r--src/plugins/relay/relay-remote.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/relay/relay-remote.c b/src/plugins/relay/relay-remote.c
index 6caf57e1a..9d1ba211a 100644
--- a/src/plugins/relay/relay-remote.c
+++ b/src/plugins/relay/relay-remote.c
@@ -792,12 +792,9 @@ relay_remote_free (struct t_relay_remote *remote)
}
free (remote->address);
free (remote->websocket_key);
- if (remote->hook_url_handshake)
- weechat_unhook (remote->hook_url_handshake);
- if (remote->hook_connect)
- weechat_unhook (remote->hook_connect);
- if (remote->hook_fd)
- weechat_unhook (remote->hook_fd);
+ weechat_unhook (remote->hook_url_handshake);
+ weechat_unhook (remote->hook_connect);
+ weechat_unhook (remote->hook_fd);
relay_websocket_deflate_free (remote->ws_deflate);
free (remote->partial_ws_frame);