mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Fix memory leak and coredump if do search in editor.
This commit is contained in:
parent
4e64ee3b8d
commit
e8f71d0db8
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user