aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-16 20:15:59 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-16 20:15:59 +0800
commitf6c356b11614f99acc3c0650be1b740caeb589db (patch)
tree2acd878ed2048a0df50a7aa33341eb458833b303
parent4ce48773980ec26cde77275c68fa05a5eab73515 (diff)
downloadgsoc2013-evolution-f6c356b11614f99acc3c0650be1b740caeb589db.tar
gsoc2013-evolution-f6c356b11614f99acc3c0650be1b740caeb589db.tar.gz
gsoc2013-evolution-f6c356b11614f99acc3c0650be1b740caeb589db.tar.bz2
gsoc2013-evolution-f6c356b11614f99acc3c0650be1b740caeb589db.tar.lz
gsoc2013-evolution-f6c356b11614f99acc3c0650be1b740caeb589db.tar.xz
gsoc2013-evolution-f6c356b11614f99acc3c0650be1b740caeb589db.tar.zst
gsoc2013-evolution-f6c356b11614f99acc3c0650be1b740caeb589db.zip
Fixed another memory leak.
2000-05-16 Christopher James Lahey <clahey@helixcode.com> * backend/ebook/e-card.c (add_list_unique): Fixed another memory leak. svn path=/trunk/; revision=3086
-rw-r--r--addressbook/ChangeLog4
-rw-r--r--addressbook/backend/ebook/e-card.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 197b7a747a..4334e48595 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,9 @@
2000-05-16 Christopher James Lahey <clahey@helixcode.com>
+ * backend/ebook/e-card.c (add_list_unique): Fixed another memory leak.
+
+2000-05-16 Christopher James Lahey <clahey@helixcode.com>
+
* backend/ebook/e-card-simple.c, backend/pas/pas-backend-file.c,
contact-editor/e-contact-editor.c, ename/e-name-western.c,
gui/component/addressbook.c, gui/minicard/e-minicard-view.c: Fixed
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));
}