From: Nathan W. <fac...@us...> - 2004-01-06 07:08:02
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv23649/src Modified Files: blist.c gtkblist.c Log Message: plug memory leaks Index: blist.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/blist.c,v retrieving revision 1.126 retrieving revision 1.127 diff -u -d -p -r1.126 -r1.127 --- blist.c 4 Jan 2004 23:07:40 -0000 1.126 +++ blist.c 6 Jan 2004 07:07:59 -0000 1.127 @@ -2502,6 +2502,7 @@ static void gaim_blist_node_setting_free g_free(setting->value.string); break; } + g_free(setting); } static void gaim_blist_node_initialize_settings(GaimBlistNode* node) Index: gtkblist.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/gtkblist.c,v retrieving revision 1.63 retrieving revision 1.64 diff -u -d -p -r1.63 -r1.64 --- gtkblist.c 5 Jan 2004 06:16:48 -0000 1.63 +++ gtkblist.c 6 Jan 2004 07:07:59 -0000 1.64 @@ -1773,19 +1773,19 @@ static char *gaim_get_tooltip_text(GaimB char *label, *tmp2, *value; pce = tmp->data; - if(pce->secret) - continue; + if(!pce->secret) { - tmp2 = g_markup_escape_text(pce->label, -1); - label = gaim_text_strip_mnemonic(tmp2); - g_free(tmp2); + 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); + 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_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); |