diff src/aim.c @ 2257:eae25a0309c1

[gaim-migrate @ 2267] eyh luuve to leek you all uuver uur bohdee. sorry. i had to put "leek" in there and i already used "leek soup". and one of my co-workers is french. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 10 Sep 2001 17:09:46 +0000
parents 14e8978f86bb
children 64dd9e99884c
line wrap: on
line diff
--- a/src/aim.c	Mon Sep 10 17:03:39 2001 +0000
+++ b/src/aim.c	Mon Sep 10 17:09:46 2001 +0000
@@ -190,7 +190,7 @@
 
 	while (usr) {
 		u = (struct aim_user *)usr->data;
-		tmp = g_list_append(tmp, g_strdup(u->username));
+		tmp = g_list_append(tmp, u->username);
 		usr = usr->next;
 	}
 
@@ -221,6 +221,8 @@
 	GtkStyle *style;
 	GdkBitmap *mask;
 
+	GList *tmp;
+
 	if (mainwindow) {
 		gtk_widget_show(mainwindow);
 		return;
@@ -254,7 +256,9 @@
 	gtk_widget_show(label);
 
 	name = gtk_combo_new();
-	gtk_combo_set_popdown_strings(GTK_COMBO(name), combo_user_names());
+	tmp = combo_user_names();
+	gtk_combo_set_popdown_strings(GTK_COMBO(name), tmp);
+	g_list_free(tmp);
 	gtk_signal_connect(GTK_OBJECT(GTK_COMBO(name)->entry), "activate",
 			   GTK_SIGNAL_FUNC(doenter), mainwindow);
 	gtk_signal_connect(GTK_OBJECT(GTK_COMBO(name)->entry), "changed",