comparison src/protocols/irc/parse.c @ 8954:c60f82d78dea

[gaim-migrate @ 9727] " There are 3 GError's that are not being g_error_free()'d This patch free's them. " --Stu Tomlinson committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 16 May 2004 17:46:27 +0000
parents 478b6184152d
children 933a19e3a6b3
comparison
equal deleted inserted replaced
8953:0277908e367d 8954:c60f82d78dea
145 "UTF-8", NULL, NULL, &err); 145 "UTF-8", NULL, NULL, &err);
146 if (err) { 146 if (err) {
147 gaim_debug(GAIM_DEBUG_ERROR, "irc", "send conversion error: %s\n", err->message); 147 gaim_debug(GAIM_DEBUG_ERROR, "irc", "send conversion error: %s\n", err->message);
148 gaim_debug(GAIM_DEBUG_ERROR, "irc", "Sending raw, which probably isn't right\n"); 148 gaim_debug(GAIM_DEBUG_ERROR, "irc", "Sending raw, which probably isn't right\n");
149 utf8 = g_strdup(string); 149 utf8 = g_strdup(string);
150 g_error_free(err);
150 } 151 }
151 152
152 return utf8; 153 return utf8;
153 } 154 }
154 155
161 gaim_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET), 162 gaim_account_get_string(irc->account, "encoding", IRC_DEFAULT_CHARSET),
162 NULL, NULL, &err); 163 NULL, NULL, &err);
163 if (err) { 164 if (err) {
164 gaim_debug(GAIM_DEBUG_ERROR, "irc", "recv conversion error: %s\n", err->message); 165 gaim_debug(GAIM_DEBUG_ERROR, "irc", "recv conversion error: %s\n", err->message);
165 utf8 = g_strdup(_("(There was an error converting this message. Check the 'Encoding' option in the Account Editor)")); 166 utf8 = g_strdup(_("(There was an error converting this message. Check the 'Encoding' option in the Account Editor)"));
167 g_error_free(err);
166 } 168 }
167 169
168 return utf8; 170 return utf8;
169 } 171 }
170 172