--- 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) {