From 6266fcab664c9a907b1d32a1c94ef7fd3cfb9fba Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 2 Oct 2006 20:32:21 +0200 Subject: Fixed memory leak in jabber_buddy_ask() and added "handling" of type="error" tags. --- protocols/jabber/jabber_util.c | 1 + protocols/jabber/presence.c | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'protocols') diff --git a/protocols/jabber/jabber_util.c b/protocols/jabber/jabber_util.c index 6764e7b3..845c2d8c 100644 --- a/protocols/jabber/jabber_util.c +++ b/protocols/jabber/jabber_util.c @@ -175,4 +175,5 @@ void jabber_buddy_ask( struct gaim_connection *gc, char *handle ) buf = g_strdup_printf( "The user %s wants to add you to his/her buddy list.", handle ); do_ask_dialog( gc, buf, bla, jabber_buddy_ask_yes, jabber_buddy_ask_no ); + g_free( buf ); } diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c index 1b8008b8..57301270 100644 --- a/protocols/jabber/presence.c +++ b/protocols/jabber/presence.c @@ -56,6 +56,10 @@ xt_status jabber_pkt_presence( struct xt_node *node, gpointer data ) If you're one of those people, this is your chance to write your first line of code in C... */ } + else if( strcmp( type, "error" ) == 0 ) + { + /* What to do with it? */ + } else { printf( "Received PRES from %s:\n", from ); -- cgit v1.2.3