From 085f43fc8d30e0b3a4f2146b946fd709ca6c59e3 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Fri, 29 Nov 2002 08:28:51 +0000 Subject: [PATCH] * editoptions.c (edit_options_dialog): Use g_free() to release variables allocated in quick_dialog(). --- edit/ChangeLog | 5 +++++ edit/editoptions.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/edit/ChangeLog b/edit/ChangeLog index d8bbe7592..5b7765770 100644 --- a/edit/ChangeLog +++ b/edit/ChangeLog @@ -1,3 +1,8 @@ +2002-11-29 Andrew V. Samoilov + + * editoptions.c (edit_options_dialog): Use g_free() to release + variables allocated in quick_dialog(). + 2002-11-28 Pavel Roskin * edit-widget.h: Move typedef WEdit and file names ... diff --git a/edit/editoptions.c b/edit/editoptions.c index d1589c0c2..f313cb630 100644 --- a/edit/editoptions.c +++ b/edit/editoptions.c @@ -163,13 +163,13 @@ void edit_options_dialog (void) if (p) { option_word_wrap_line_length = atoi (p); - free (p); + g_free (p); } if (q) { option_tab_spacing = atoi (q); if (option_tab_spacing <= 0) option_tab_spacing = 8; - free (q); + g_free (q); } option_syntax_highlighting = tedit_syntax_highlighting;