summaryrefslogtreecommitdiff
path: root/src/plugins/charset
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/charset')
-rw-r--r--src/plugins/charset/charset.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/charset/charset.c b/src/plugins/charset/charset.c
index a36b2c7d5..3546259f8 100644
--- a/src/plugins/charset/charset.c
+++ b/src/plugins/charset/charset.c
@@ -50,8 +50,8 @@ struct t_config_option *charset_default_encode = NULL;
struct t_config_section *charset_config_section_decode = NULL;
struct t_config_section *charset_config_section_encode = NULL;
-const char *charset_terminal = NULL;
-const char *charset_internal = NULL;
+char *charset_terminal = NULL;
+char *charset_internal = NULL;
/*
@@ -641,5 +641,10 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
weechat_config_free (charset_config_file);
+ if (charset_terminal)
+ free (charset_terminal);
+ if (charset_internal)
+ free (charset_internal);
+
return WEECHAT_RC_OK;
}