diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-02 20:32:21 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-10-02 20:32:21 +0200 | 
| commit | 6266fcab664c9a907b1d32a1c94ef7fd3cfb9fba (patch) | |
| tree | 47476e0a288fd0b96336dc64bae15c0ad60cc21d | |
| parent | 995913b4be70be6e07b8aa7661ac639e5fc0d6e7 (diff) | |
Fixed memory leak in jabber_buddy_ask() and added "handling" of type="error"
<presence/> tags.
| -rw-r--r-- | protocols/jabber/jabber_util.c | 1 | ||||
| -rw-r--r-- | protocols/jabber/presence.c | 4 | 
2 files changed, 5 insertions, 0 deletions
| 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 ); | 
