Mercurial > pidgin
changeset 4441:474a0a88dd5e
[gaim-migrate @ 4716]
niqueco noticed that I don't clean up after myself.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 28 Jan 2003 05:56:38 +0000 |
parents | d9e4eacf6b46 |
children | fd53864d880f |
files | src/list.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/list.c Tue Jan 28 05:39:29 2003 +0000 +++ b/src/list.c Tue Jan 28 05:56:38 2003 +0000 @@ -933,7 +933,7 @@ }; static gboolean gaim_blist_read(const char *filename) { - gchar *contents; + gchar *contents = NULL; gsize length; GMarkupParseContext *context; GError *error = NULL; @@ -947,16 +947,20 @@ if(!g_markup_parse_context_parse(context, contents, length, NULL)) { g_markup_parse_context_free(context); + g_free(contents); return FALSE; } if(!g_markup_parse_context_end_parse(context, NULL)) { debug_printf("error parsing blist\n"); g_markup_parse_context_free(context); + g_free(contents); return FALSE; } g_markup_parse_context_free(context); + g_free(contents); + if(blist_parser_error_occurred) return FALSE;