changeset 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 c9872abd9518
children f9ff0882e247
files src/protocols/irc/parse.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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) {