aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-card-simple.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-16 19:45:45 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-16 19:45:45 +0800
commit4ce48773980ec26cde77275c68fa05a5eab73515 (patch)
tree77e338dfe31f3bbb978f5cd7ddc94f2fc1a96e7b /addressbook/backend/ebook/e-card-simple.c
parent006c78bdab12452630ecf0f7b97c8f0870fcca8c (diff)
downloadgsoc2013-evolution-4ce48773980ec26cde77275c68fa05a5eab73515.tar
gsoc2013-evolution-4ce48773980ec26cde77275c68fa05a5eab73515.tar.gz
gsoc2013-evolution-4ce48773980ec26cde77275c68fa05a5eab73515.tar.bz2
gsoc2013-evolution-4ce48773980ec26cde77275c68fa05a5eab73515.tar.lz
gsoc2013-evolution-4ce48773980ec26cde77275c68fa05a5eab73515.tar.xz
gsoc2013-evolution-4ce48773980ec26cde77275c68fa05a5eab73515.tar.zst
gsoc2013-evolution-4ce48773980ec26cde77275c68fa05a5eab73515.zip
Fixed some memory leaks.
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 some memory leaks. * backend/ebook/e-card.c: Rearranged some code. svn path=/trunk/; revision=3085
Diffstat (limited to 'addressbook/backend/ebook/e-card-simple.c')
-rw-r--r--addressbook/backend/ebook/e-card-simple.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-card-simple.c b/addressbook/backend/ebook/e-card-simple.c
index 6aac12742c..e087e153cb 100644
--- a/addressbook/backend/ebook/e-card-simple.c
+++ b/addressbook/backend/ebook/e-card-simple.c
@@ -368,6 +368,7 @@ static void
e_card_simple_destroy (GtkObject *object)
{
ECardSimple *simple;
+ int i;
simple = E_CARD_SIMPLE (object);
@@ -376,6 +377,13 @@ e_card_simple_destroy (GtkObject *object)
g_list_foreach(simple->temp_fields, (GFunc) g_free, NULL);
g_list_free(simple->temp_fields);
simple->temp_fields = NULL;
+
+ for(i = 0; i < E_CARD_SIMPLE_PHONE_ID_LAST; i++)
+ g_free(simple->phone[i]);
+ for(i = 0; i < E_CARD_SIMPLE_EMAIL_ID_LAST; i++)
+ g_free(simple->email[i]);
+ for(i = 0; i < E_CARD_SIMPLE_ADDRESS_ID_LAST; i++)
+ g_free(simple->address[i]);
}