[vte/vte-0-54] conv: Fix crash after multiple encoding changes
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-54] conv: Fix crash after multiple encoding changes
- Date: Sun, 23 Sep 2018 10:58:08 +0000 (UTC)
commit e3ed022308860a6c90935d4c663e9e90be3883c0
Author: Egmont Koblinger <egmont gmail com>
Date: Sun Sep 23 12:55:46 2018 +0200
conv: Fix crash after multiple encoding changes
https://gitlab.gnome.org/GNOME/vte/issues/50
(cherry picked from commit cb315a4c4162a543f910cb0c11a8cf91bd17b0e4)
src/vte.cc | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/vte.cc b/src/vte.cc
index 90a0f461..6c9f70f9 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -1967,6 +1967,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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]