From f6c356b11614f99acc3c0650be1b740caeb589db Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 16 May 2000 12:15:59 +0000 Subject: Fixed another memory leak. 2000-05-16 Christopher James Lahey * backend/ebook/e-card.c (add_list_unique): Fixed another memory leak. svn path=/trunk/; revision=3086 --- addressbook/ChangeLog | 4 ++++ addressbook/backend/ebook/e-card.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 197b7a747a..4334e48595 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,7 @@ +2000-05-16 Christopher James Lahey + + * backend/ebook/e-card.c (add_list_unique): Fixed another memory leak. + 2000-05-16 Christopher James Lahey * backend/ebook/e-card-simple.c, backend/pas/pas-backend-file.c, diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 851212ae22..ac2498a236 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -727,9 +727,8 @@ add_list_unique(ECard *card, ECardList *list, char *string) } if (!e_card_iterator_is_valid(iterator)) { e_card_list_append(list, temp); - } else { - g_free(temp); } + g_free(temp); gtk_object_unref(GTK_OBJECT(iterator)); } -- cgit v1.2.3