src/aim.c

changeset 2257
fd3ceeea0d8e
parent 2232
8af3b178de6b
child 2307
ed444e623912
--- 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",

mercurial