From d9a88088d1ee1f91eae835895891c98ae8336a00 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Tue, 27 Nov 2001 12:38:30 +0000 Subject: [PATCH] * editmenu.c (edit_wrap_cmd): Use g_free() on the result of input_dialog(). --- edit/ChangeLog | 7 ++++++- edit/editmenu.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index 33accdbb2..af598379b 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,6 +1,11 @@ +2001-11-27 Andrew V. Samoilov + + * editmenu.c (edit_wrap_cmd): Use g_free() on the result + of input_dialog(). + 2001-11-22 Andrew V. Samoilov - * editcmd.c (edit_save_file): Use g_free() on the result of + * editcmd.c (edit_save_file): Use g_free() on the result of mc_mkstemps(). 2001-11-19 Andrew V. Samoilov diff --git a/edit/editmenu.c b/edit/editmenu.c index 5e7fc082f..a8028cae4 100644 --- a/edit/editmenu.c +++ b/edit/editmenu.c @@ -58,7 +58,7 @@ void edit_wrap_cmd (void) if (*f) { option_word_wrap_line_length = atoi (f); } - free (f); + g_free (f); } }