--- a/src/protocols/irc/parse.c Tue Jan 11 02:00:44 2005 +0000 +++ b/src/protocols/irc/parse.c Tue Jan 11 17:25:06 2005 +0000 @@ -235,8 +235,10 @@ enclist = gaim_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET); encodings = g_strsplit(enclist, ",", -1); - if (encodings[0] == NULL) + if (encodings[0] == NULL) { + g_strfreev(encodings); return gaim_utf8_salvage(string); + } for (i = 0; encodings[i] != NULL; i++) { charset = encodings[i]; @@ -255,6 +257,7 @@ return utf8; } } + g_strfreev(encodings); return gaim_utf8_salvage(string); }