aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple/purple.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-11 11:30:27 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-11 11:30:27 +0100
commit1e52e1ff518987092cfe94bc5c9c4479ed535019 (patch)
tree59a0f7c6725f37703797b8825058356ec6bf1f27 /protocols/purple/purple.c
parente92c4f4f63ca0ba9ac6f959f7ff894ad2fc72a04 (diff)
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.)
Diffstat (limited to 'protocols/purple/purple.c')
-rw-r--r--protocols/purple/purple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 2804fdf3..b8d74ba1 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -876,7 +876,7 @@ static void *prplcb_request_action( const char *title, const char *primary, cons
/* TODO: IRC stuff here :-( */
q = g_strdup_printf( "Request: %s\n\n%s\n\n%s", title, primary, secondary );
pqad->bee_data = query_add( local_bee->ui_data, purple_ic_by_pa( account ), q,
- prplcb_request_action_yes, prplcb_request_action_no, pqad );
+ prplcb_request_action_yes, prplcb_request_action_no, g_free, pqad );
g_free( q );