Mercurial > pidgin
diff src/protocols/irc/parse.c @ 10278:dabcadc17ca0
[gaim-migrate @ 11433]
And a little leak in irc conversion
committer: Tailor Script <tailor@pidgin.im>
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Mon, 29 Nov 2004 04:34:04 +0000 |
parents | 357d4fa1bfbe |
children | 1a97d5e88d12 |
line wrap: on
line diff
--- a/src/protocols/irc/parse.c Mon Nov 29 04:32:25 2004 +0000 +++ b/src/protocols/irc/parse.c Mon Nov 29 04:34:04 2004 +0000 @@ -208,8 +208,10 @@ enclist = gaim_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET); encodings = g_strsplit(enclist, ",", 2); - if (encodings[0] == NULL || !strcasecmp("UTF-8", encodings[0])) + if (encodings[0] == NULL || !strcasecmp("UTF-8", encodings[0])) { + g_strfreev(encodings); return g_strdup(string); + } utf8 = g_convert(string, strlen(string), encodings[0], "UTF-8", NULL, NULL, &err); if (err) {