Mercurial > pidgin.yaz
diff src/dialogs.c @ 4397:ce3a0eba91ef
[gaim-migrate @ 4666]
The add/remove button is fixed. Thanks ari.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 22 Jan 2003 23:20:09 +0000 |
parents | 00f4fa7a93ff |
children | 31834b4598eb |
line wrap: on
line diff
--- a/src/dialogs.c Wed Jan 22 23:17:13 2003 +0000 +++ b/src/dialogs.c Wed Jan 22 23:20:09 2003 +0000 @@ -452,6 +452,7 @@ { struct group *g = find_group_by_buddy(b); struct gaim_conversation *c; + gchar *name = g_strdup(b->name); /* b->name is null after remove_buddy */ if (!b) return; @@ -459,14 +460,16 @@ g = find_group_by_buddy(b); debug_printf(_("Removing '%s' from buddy list.\n"), b->name); - serv_remove_buddy(b->user->gc, b->name, g->name); + serv_remove_buddy(b->user->gc, name, g->name); remove_buddy(b); gaim_blist_save(); - c = gaim_find_conversation(b->name); + c = gaim_find_conversation(name); if (c != NULL) gaim_conversation_update(c, GAIM_CONV_UPDATE_REMOVE); + + g_free(name); } void show_confirm_del(struct gaim_connection *gc, gchar *name)