Mercurial > pidgin
comparison src/util.c @ 13307:2990bc8c89fa
[gaim-migrate @ 15673]
Leak fix
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 20 Feb 2006 21:40:54 +0000 |
parents | 15b3926e2147 |
children | b04212d6b115 |
comparison
equal
deleted
inserted
replaced
13306:b9048e9ed019 | 13307:2990bc8c89fa |
---|---|
619 if ((len = gaim_internal_strftime(buf, sizeof(buf), locale, tm)) == 0) | 619 if ((len = gaim_internal_strftime(buf, sizeof(buf), locale, tm)) == 0) |
620 { | 620 { |
621 g_free(locale); | 621 g_free(locale); |
622 return ""; | 622 return ""; |
623 } | 623 } |
624 | |
625 g_free(locale); | |
624 | 626 |
625 utf8 = g_locale_to_utf8(buf, len, NULL, NULL, &err); | 627 utf8 = g_locale_to_utf8(buf, len, NULL, NULL, &err); |
626 if (err != NULL) | 628 if (err != NULL) |
627 { | 629 { |
628 gaim_debug_error("util", "Result conversion failed in gaim_utf8_strftime(): %s", err->message); | 630 gaim_debug_error("util", "Result conversion failed in gaim_utf8_strftime(): %s", err->message); |