mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
(edit_clean): no need in NULLization before purge.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
5b858d8e6e
commit
e13ac553d3
@ -2185,13 +2185,13 @@ edit_clean (WEdit * edit)
|
|||||||
|
|
||||||
/* a stale lock, remove it */
|
/* a stale lock, remove it */
|
||||||
if (edit->locked)
|
if (edit->locked)
|
||||||
edit->locked = unlock_file (edit->filename_vpath);
|
(void) unlock_file (edit->filename_vpath);
|
||||||
|
|
||||||
/* save cursor position */
|
/* save cursor position */
|
||||||
if (option_save_position)
|
if (option_save_position)
|
||||||
edit_save_position (edit);
|
edit_save_position (edit);
|
||||||
else if (edit->serialized_bookmarks != NULL)
|
else if (edit->serialized_bookmarks != NULL)
|
||||||
edit->serialized_bookmarks = (GArray *) g_array_free (edit->serialized_bookmarks, TRUE);
|
g_array_free (edit->serialized_bookmarks, TRUE);
|
||||||
|
|
||||||
/* File specified on the mcedit command line and never saved */
|
/* File specified on the mcedit command line and never saved */
|
||||||
if (edit->delete_file)
|
if (edit->delete_file)
|
||||||
@ -2207,8 +2207,7 @@ edit_clean (WEdit * edit)
|
|||||||
vfs_path_free (edit->filename_vpath);
|
vfs_path_free (edit->filename_vpath);
|
||||||
vfs_path_free (edit->dir_vpath);
|
vfs_path_free (edit->dir_vpath);
|
||||||
mc_search_free (edit->search);
|
mc_search_free (edit->search);
|
||||||
edit->search = NULL;
|
g_free (edit->last_search_string);
|
||||||
MC_PTR_FREE (edit->last_search_string);
|
|
||||||
|
|
||||||
#ifdef HAVE_CHARSET
|
#ifdef HAVE_CHARSET
|
||||||
if (edit->converter != str_cnv_from_term)
|
if (edit->converter != str_cnv_from_term)
|
||||||
|
Loading…
Reference in New Issue
Block a user