Commit cb315a4c authored by Egmont Koblinger's avatar Egmont Koblinger

conv: Fix crash after multiple encoding changes

#50
parent bca1cd27
......@@ -1966,6 +1966,8 @@ Terminal::set_encoding(char const* codeset)
g_iconv_close(m_incoming_conv);
if (m_outgoing_conv != ((GIConv)-1))
g_iconv_close(m_outgoing_conv);
m_incoming_conv = (GIConv)-1;
m_outgoing_conv = (GIConv)-1;
} else {
auto outconv = g_iconv_open(codeset, "UTF-8");
if (outconv == ((GIConv)-1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment