changeset 13355:d278dac585a5

[gaim-migrate @ 15728] Minor portion of SF Patch #1440729 from Sadrul. This fixes a leak. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 01 Mar 2006 04:08:17 +0000
parents da2179c099f0
children 554575d1f9b5
files src/gtkrequest.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkrequest.c	Wed Mar 01 03:40:45 2006 +0000
+++ b/src/gtkrequest.c	Wed Mar 01 04:08:17 2006 +0000
@@ -1325,11 +1325,12 @@
 					   GtkTreeIter *iter, gpointer data)
 {
 	GaimRequestField *field = (GaimRequestField *)data;
-	const char *text;
+	char *text;
 
 	gtk_tree_model_get(model, iter, 1, &text, -1);
 
 	gaim_request_field_list_add_selected(field, text);
+	g_free(text);
 }
 
 static void