diff src/buddy_chat.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 73872bedf07e
children a9787aad60f3
line wrap: on
line diff
--- a/src/buddy_chat.c	Mon Sep 10 17:03:39 2001 +0000
+++ b/src/buddy_chat.c	Mon Sep 10 17:09:46 2001 +0000
@@ -316,7 +316,10 @@
 	struct group *g;
 	struct buddy *buddy;
 	
-	GList *tmp = NULL;
+	static GList *tmp = NULL;
+
+	if (tmp)
+		g_list_free(tmp);
 
 	tmp = g_list_append(tmp, "");
 
@@ -332,7 +335,7 @@
 				buddy = (struct buddy *)bl->data;
 
 				if (buddy->present)
-					tmp = g_list_append(tmp, g_strdup(buddy->name));
+					tmp = g_list_append(tmp, buddy->name);
 
 				bl = g_slist_next(bl);
 			}	
@@ -352,7 +355,6 @@
 	GtkWidget *label;
 	GtkWidget *bbox;
 	GtkWidget *vbox;
-	GtkWidget *topbox;
 	GtkWidget *table;
 	GtkWidget *frame;
 	
@@ -374,7 +376,6 @@
 		gtk_container_set_border_width(GTK_CONTAINER(frame), 5);
 		
 		/* Now we should fill out all of the names */ 
-		/* FIXME: Does this cause a leak? */
 		gtk_combo_set_popdown_strings(GTK_COMBO(inviteentry), generate_invite_user_names(b->gc));
 
 		if (display_options & OPT_DISP_COOL_LOOK) {