Fix memory leak and coredump if do search in editor.

This commit is contained in:
Slava Zanko 2009-04-22 11:59:14 +03:00
parent 4e64ee3b8d
commit e8f71d0db8

View File

@ -266,6 +266,7 @@ str_nconvert_to_display (char *str, int len)
buff = g_string_new(""); buff = g_string_new("");
str_nconvert (conv, str, len, buff); str_nconvert (conv, str, len, buff);
str_close_conv (conv);
return buff; return buff;
} }
@ -303,6 +304,7 @@ str_nconvert_to_input (char *str, int len)
buff = g_string_new(""); buff = g_string_new("");
str_nconvert (conv, str, len, buff); str_nconvert (conv, str, len, buff);
str_close_conv (conv);
return buff; return buff;
} }