diff src/dialogs.c @ 7879:f9df510460d7

[gaim-migrate @ 8533] Some lot of small changes, mostly to conversation menus. -Made the alias menu item in chat convo windows work -Made the add/remove menu items in chat convo windows work. The menu item still doesn't toggle after you've added or removed, but I'll probably do that soon -Made the invite dialog not modal -Removed GAIM_STOCK_PRIVACY from stock.[c|h] since we're not using it anymore committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 14 Dec 2003 23:59:14 +0000
parents 340df1652af1
children 2014b91db201
line wrap: on
line diff
--- a/src/dialogs.c	Sun Dec 14 23:55:39 2003 +0000
+++ b/src/dialogs.c	Sun Dec 14 23:59:14 2003 +0000
@@ -180,10 +180,11 @@
 		serv_warn(w->gc, w->who, (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w->anon))) ? 1 : 0);
 
 	destroy_dialog(NULL, w->window);
+	g_free(w->who);
 	g_free(w);
 }
 
-void show_warn_dialog(GaimConnection *gc, char *who)
+void show_warn_dialog(GaimConnection *gc, const char *who)
 {
 	char *labeltext;
 	GtkWidget *hbox, *vbox;
@@ -192,7 +193,7 @@
 	GaimConversation *c = gaim_find_conversation_with_account(who, gc->account);
 
 	struct warning *w = g_new0(struct warning, 1);
-	w->who = who;
+	w->who = g_strdup(who);
 	w->gc = gc;
 
 	gtk_misc_set_alignment(GTK_MISC(img), 0, 0);