(str_crt_conv_from): handle INVALID_CONV.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2024-09-13 12:42:30 +03:00
parent 6d21e16007
commit 0a3ea1f829
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ str_crt_conv_from (const char *from_enc)
void
str_close_conv (GIConv conv)
{
if (conv != str_cnv_not_convert)
if (conv != INVALID_CONV && conv != str_cnv_not_convert)
g_iconv_close (conv);
}