| Index: chrome/browser/app_modal_dialog_gtk.cc | 
| =================================================================== | 
| --- chrome/browser/app_modal_dialog_gtk.cc	(revision 14819) | 
| +++ chrome/browser/app_modal_dialog_gtk.cc	(working copy) | 
| @@ -19,15 +19,17 @@ | 
| // If there's a text entry in the dialog, get the text from the first one and | 
| // return it. | 
| std::wstring GetPromptText(GtkDialog* dialog) { | 
| +  std::wstring text; | 
| // TODO(tc): Replace with gtk_dialog_get_content_area() when using GTK 2.14+ | 
| GtkWidget* contents_vbox = dialog->vbox; | 
| GList* first_child = gtk_container_get_children(GTK_CONTAINER(contents_vbox)); | 
| for (GList* item = first_child; item; item = g_list_next(item)) { | 
| if (GTK_IS_ENTRY(item->data)) { | 
| -      return UTF8ToWide(gtk_entry_get_text(GTK_ENTRY(item->data))); | 
| +      text = UTF8ToWide(gtk_entry_get_text(GTK_ENTRY(item->data))); | 
| } | 
| } | 
| -  return std::wstring(); | 
| +  g_list_free(first_child); | 
| +  return text; | 
| } | 
|  | 
| void OnDialogResponse(GtkDialog* dialog, gint response_id, | 
|  |