1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix a crash when adding a server in the cookie manager

Do not add the label for the text field to the memory list (the list of
allocations that should be freed with the dialogue).

Thanks to Kalle Olavi Niemitalo for reporting this bug.
This commit is contained in:
Miciah Dashiel Butler Masters 2006-05-03 17:47:28 +00:00 committed by Miciah Dashiel Butler Masters
parent 6ab4eee456
commit d345a3c7cb

View File

@ -448,7 +448,7 @@ push_add_server_button(struct dialog_data *dlg_data, struct widget_data *button)
add_dlg_button(dlg, _("~OK", term), B_ENTER, ok_dialog, NULL);
add_dlg_button(dlg, _("~Cancel", term), B_ESC, cancel_dialog, NULL);
add_dlg_end(dlg, SERVER_WIDGETS_COUNT);
do_dialog(term, dlg, getml(dlg, text, NULL));
do_dialog(term, dlg, getml(dlg, NULL));
return EVENT_PROCESSED;
#undef SERVER_WIDGETS_COUNT