[gnome-terminal] encodings: Fix charset string interning



commit 872c8797af0aec8d6b1ca142236bd9fa4d024a1e
Author: Christian Persch <chpe gnome org>
Date:   Wed May 21 10:20:17 2014 +0200

    encodings: Fix charset string interning
    
    Not all charsets are from static strings, so don't use
    g_intern_static_string but g_intern_string.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730390

 src/terminal-encoding.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-encoding.c b/src/terminal-encoding.c
index e7d5641..2aeb4d4 100644
--- a/src/terminal-encoding.c
+++ b/src/terminal-encoding.c
@@ -139,7 +139,7 @@ terminal_encoding_new (const char *charset,
 
   encoding = g_slice_new (TerminalEncoding);
   encoding->refcount = 1;
-  encoding->charset = g_intern_static_string (charset);
+  encoding->charset = g_intern_string (charset);
   encoding->name = g_strdup (display_name);
   encoding->valid = encoding->validity_checked = force_valid || g_str_equal (charset, "UTF-8");
   encoding->is_custom = is_custom;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]