* editoptions.c (edit_options_dialog): Use g_free() to release

variables allocated in quick_dialog().
This commit is contained in:
Andrew V. Samoilov 2002-11-29 08:28:51 +00:00
parent 488f984e02
commit 085f43fc8d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-11-29 Andrew V. Samoilov <sav@bcs.zp.ua>
* editoptions.c (edit_options_dialog): Use g_free() to release
variables allocated in quick_dialog().
2002-11-28 Pavel Roskin <proski@gnu.org>
* edit-widget.h: Move typedef WEdit and file names ...

View File

@ -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;