From 1e52e1ff518987092cfe94bc5c9c4479ed535019 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 11 Jul 2010 11:30:27 +0100 Subject: When cleaning up queries, q->data is free()d. Even if it turns out to be the "struct irc" containing all data belonging to a session. Sanitise memory management a little bit here. (There are some memory leaks in here too that need to be fixed at some point.) --- ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipc.c') diff --git a/ipc.c b/ipc.c index 32e58cb7..9a100465 100644 --- a/ipc.c +++ b/ipc.c @@ -323,7 +323,7 @@ static void ipc_child_cmd_takeover( irc_t *irc, char **cmd ) "You're already connected to this server. " "Would you like to take over this session?", ipc_child_cmd_takeover_yes, - ipc_child_cmd_takeover_no, irc ); + ipc_child_cmd_takeover_no, NULL, irc ); /* This one's going to connect to accounts, avoid that. */ b_event_remove( irc->login_source_id ); -- cgit v1.2.3