1
1

Fixed memory leak: destroy serialization bookmarks if file position is not saved.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2010-09-08 12:32:17 +04:00
родитель 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)