From 63a4966a705924f21942f6cc0758307caae50d6d Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 5 Mar 2010 22:35:36 +0300 Subject: [PATCH] Destroy converter before quit from editor. Signed-off-by: Andrew Borodin --- src/editor/edit.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index b88e2943..a1935695 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -897,11 +897,12 @@ edit_clean (WEdit *edit) g_free (edit->filename); g_free (edit->dir); - if (edit->search) - { - mc_search_free(edit->search); - edit->search = NULL; - } + mc_search_free (edit->search); + edit->search = NULL; + + if (edit->converter != str_cnv_from_term) + str_close_conv (edit->converter); + edit_purge_widget (edit); return 1; -- 2.11.4.GIT