mirror of https://github.com/MidnightCommander/mc
* editoptions.c (edit_options_dialog): Use g_free() to release
variables allocated in quick_dialog().
This commit is contained in:
parent
488f984e02
commit
085f43fc8d
|
@ -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 ...
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue