From 5bdef176e645509820ebb3d205db670abaab0776 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 2 Dec 2005 08:24:46 +0000 Subject: fixed crash bug when an address in a group was modified. Fixed memory leaks. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@798 ee746299-78ed-0310-b773-934348b2243d --- src/addrbook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/addrbook.c') diff --git a/src/addrbook.c b/src/addrbook.c index 6c80142b..19a1ba00 100644 --- a/src/addrbook.c +++ b/src/addrbook.c @@ -1276,6 +1276,7 @@ void addrbook_update_address_list( AddressBookFile *book, ItemPerson *person, GL groupEMail = g_list_remove( groupEMail, emailGrp ); nodeGrpEM = g_list_next( nodeGrpEM ); } + group->listEMail = groupEMail; /* Move on to next group */ nodeGrp = g_list_next( nodeGrp ); @@ -1438,7 +1439,7 @@ void addrbook_update_group_list( AddressBookFile *book, ItemGroup *group, GList oldData = group->listEMail; group->listEMail = listEMail; mgu_clear_list( oldData ); - oldData = NULL; + g_list_free ( oldData ); book->dirtyFlag = TRUE; } -- cgit v1.2.3