Mercurial > pidgin.yaz
diff src/pounce.c @ 5940:94ad4d45346a
[gaim-migrate @ 6380]
memleak fixen
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 22 Jun 2003 16:27:43 +0000 |
parents | 9e54bb2ee3b5 |
children | a4f2aba0848d |
line wrap: on
line diff
--- a/src/pounce.c Sat Jun 21 13:35:23 2003 +0000 +++ b/src/pounce.c Sun Jun 22 16:27:43 2003 +0000 @@ -672,6 +672,7 @@ gaim_debug(GAIM_DEBUG_ERROR, "pounces", "Error reading pounces: %s\n", error->message); + g_free(filename); g_error_free(error); pounces_loaded = TRUE; @@ -686,6 +687,7 @@ if (!g_markup_parse_context_parse(context, contents, length, NULL)) { g_markup_parse_context_free(context); g_free(contents); + g_free(filename); pounces_loaded = TRUE; @@ -698,6 +700,7 @@ g_markup_parse_context_free(context); g_free(contents); + g_free(filename); pounces_loaded = TRUE; return FALSE; @@ -705,7 +708,6 @@ g_markup_parse_context_free(context); g_free(contents); - g_free(filename); pounces_loaded = TRUE;