Mercurial > pidgin.yaz
comparison src/account.c @ 6040:80e3641ee9eb
[gaim-migrate @ 6490]
Various minor memleak fixes, and a rephrasing of an oscar error message.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 06 Jul 2003 06:57:42 +0000 |
parents | 547ba881bc7e |
children | 6a3b676eb36a |
comparison
equal
deleted
inserted
replaced
6039:0c4d0c93c8c5 | 6040:80e3641ee9eb |
---|---|
989 } | 989 } |
990 | 990 |
991 if (!g_file_get_contents(filename, &contents, &length, &error)) { | 991 if (!g_file_get_contents(filename, &contents, &length, &error)) { |
992 gaim_debug(GAIM_DEBUG_ERROR, "accounts", | 992 gaim_debug(GAIM_DEBUG_ERROR, "accounts", |
993 "Error reading accounts: %s\n", error->message); | 993 "Error reading accounts: %s\n", error->message); |
994 | |
995 g_error_free(error); | 994 g_error_free(error); |
996 | 995 g_free(filename); |
997 accounts_loaded = TRUE; | 996 accounts_loaded = TRUE; |
997 | |
998 return FALSE; | 998 return FALSE; |
999 } | 999 } |
1000 | 1000 |
1001 parser_data = g_new0(AccountParserData, 1); | 1001 parser_data = g_new0(AccountParserData, 1); |
1002 | 1002 |
1004 parser_data, free_parser_data); | 1004 parser_data, free_parser_data); |
1005 | 1005 |
1006 if (!g_markup_parse_context_parse(context, contents, length, NULL)) { | 1006 if (!g_markup_parse_context_parse(context, contents, length, NULL)) { |
1007 g_markup_parse_context_free(context); | 1007 g_markup_parse_context_free(context); |
1008 g_free(contents); | 1008 g_free(contents); |
1009 | 1009 g_free(filename); |
1010 accounts_loaded = TRUE; | 1010 accounts_loaded = TRUE; |
1011 | 1011 |
1012 return FALSE; | 1012 return FALSE; |
1013 } | 1013 } |
1014 | 1014 |
1015 if (!g_markup_parse_context_end_parse(context, NULL)) { | 1015 if (!g_markup_parse_context_end_parse(context, NULL)) { |
1016 gaim_debug(GAIM_DEBUG_ERROR, "accounts", "Error parsing %s\n", | 1016 gaim_debug(GAIM_DEBUG_ERROR, "accounts", "Error parsing %s\n", |
1017 filename); | 1017 filename); |
1018 | |
1019 g_markup_parse_context_free(context); | 1018 g_markup_parse_context_free(context); |
1020 g_free(contents); | 1019 g_free(contents); |
1020 g_free(filename); | |
1021 accounts_loaded = TRUE; | 1021 accounts_loaded = TRUE; |
1022 | 1022 |
1023 return FALSE; | 1023 return FALSE; |
1024 } | 1024 } |
1025 | 1025 |
1026 g_markup_parse_context_free(context); | 1026 g_markup_parse_context_free(context); |
1027 g_free(contents); | 1027 g_free(contents); |
1028 | |
1029 g_free(filename); | 1028 g_free(filename); |
1030 | |
1031 accounts_loaded = TRUE; | 1029 accounts_loaded = TRUE; |
1032 | 1030 |
1033 return TRUE; | 1031 return TRUE; |
1034 } | 1032 } |
1035 | 1033 |