From e8f71d0db89daca13cedb567467433938d74e730 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Wed, 22 Apr 2009 11:59:14 +0300 Subject: [PATCH] Fix memory leak and coredump if do search in editor. --- src/charsets.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/charsets.c b/src/charsets.c index aaced1f38..dd9c4b7f7 100644 --- a/src/charsets.c +++ b/src/charsets.c @@ -266,6 +266,7 @@ str_nconvert_to_display (char *str, int len) buff = g_string_new(""); str_nconvert (conv, str, len, buff); + str_close_conv (conv); return buff; } @@ -303,6 +304,7 @@ str_nconvert_to_input (char *str, int len) buff = g_string_new(""); str_nconvert (conv, str, len, buff); + str_close_conv (conv); return buff; }