Mercurial > pidgin
changeset 8020:35c2526dba16
[gaim-migrate @ 8700]
plug memory leaks
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 06 Jan 2004 07:07:59 +0000 |
parents | 1e09e7f73005 |
children | fef1723f724a |
files | src/blist.c src/gtkblist.c |
diffstat | 2 files changed, 14 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/blist.c Tue Jan 06 06:00:43 2004 +0000 +++ b/src/blist.c Tue Jan 06 07:07:59 2004 +0000 @@ -2502,6 +2502,7 @@ g_free(setting->value.string); break; } + g_free(setting); } static void gaim_blist_node_initialize_settings(GaimBlistNode* node)
--- a/src/gtkblist.c Tue Jan 06 06:00:43 2004 +0000 +++ b/src/gtkblist.c Tue Jan 06 07:07:59 2004 +0000 @@ -1773,19 +1773,19 @@ char *label, *tmp2, *value; pce = tmp->data; - if(pce->secret) - continue; - - tmp2 = g_markup_escape_text(pce->label, -1); - label = gaim_text_strip_mnemonic(tmp2); - g_free(tmp2); - - value = g_markup_escape_text(g_hash_table_lookup(chat->components, - pce->identifier), -1); - - g_string_append_printf(parts_text, "\n<b>%s</b> %s", label, value); - g_free(label); - g_free(value); + if(!pce->secret) { + + tmp2 = g_markup_escape_text(pce->label, -1); + label = gaim_text_strip_mnemonic(tmp2); + g_free(tmp2); + + value = g_markup_escape_text(g_hash_table_lookup(chat->components, + pce->identifier), -1); + + g_string_append_printf(parts_text, "\n<b>%s</b> %s", label, value); + g_free(label); + g_free(value); + } g_free(pce); } g_list_free(parts);