--- protocols/jabber/jabber_util.c 2010-10-21 00:11:02 +0000 +++ protocols/jabber/jabber_util.c 2010-10-22 23:46:44 +0000 @@ -579,8 +579,9 @@ ( ( s == NULL && bud->resource == NULL ) || ( bud->resource && s && strcmp( bud->resource, s + 1 ) == 0 ) ) ) { + int st = jabber_buddy_remove_bare( ic, full_jid ); g_free( full_jid ); - return jabber_buddy_remove_bare( ic, full_jid_ ); + return st; } else if( s == NULL || bud->resource == NULL ) {