Fixed memory leak: destroy serialization bookmarks if file position is not saved.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
родитель
ed18e2d093
Коммит
34bee19937
@ -1004,6 +1004,8 @@ edit_clean (WEdit * edit)
|
||||
/* save cursor position */
|
||||
if (option_save_position)
|
||||
edit_save_position (edit);
|
||||
else if (edit->serialized_bookmarks != NULL)
|
||||
edit->serialized_bookmarks = (GArray *) g_array_free (edit->serialized_bookmarks, TRUE);
|
||||
|
||||
/* File specified on the mcedit command line and never saved */
|
||||
if (edit->delete_file)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user