aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/jabber/jabber_util.c1
-rw-r--r--protocols/jabber/presence.c4
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 );