aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-06-21 14:39:28 +0800
committerChris Toshok <toshok@src.gnome.org>2001-06-21 14:39:28 +0800
commit536c03eb04a02b733c87956f7f86b26b1741cb8f (patch)
tree65d5856d78bd80d392cea1a0f388e61d185c46ce
parent67961cf692522cfb8415f336efb97ffddae9ca93 (diff)
downloadgsoc2013-evolution-536c03eb04a02b733c87956f7f86b26b1741cb8f.tar
gsoc2013-evolution-536c03eb04a02b733c87956f7f86b26b1741cb8f.tar.gz
gsoc2013-evolution-536c03eb04a02b733c87956f7f86b26b1741cb8f.tar.bz2
gsoc2013-evolution-536c03eb04a02b733c87956f7f86b26b1741cb8f.tar.lz
gsoc2013-evolution-536c03eb04a02b733c87956f7f86b26b1741cb8f.tar.xz
gsoc2013-evolution-536c03eb04a02b733c87956f7f86b26b1741cb8f.tar.zst
gsoc2013-evolution-536c03eb04a02b733c87956f7f86b26b1741cb8f.zip
fix a refcounting memleak.
2001-06-20 Chris Toshok <toshok@ximian.com> * backend/pas/pas-backend-file.c (pas_backend_file_process_get_supported_fields): fix a refcounting memleak. svn path=/trunk/; revision=10351
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/pas/pas-backend-file.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 6d686dc52c..687d6570db 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,11 @@
2001-06-20 Chris Toshok <toshok@ximian.com>
+ * backend/pas/pas-backend-file.c
+ (pas_backend_file_process_get_supported_fields): fix a refcounting
+ memleak.
+
+2001-06-20 Chris Toshok <toshok@ximian.com>
+
* backend/ebook/e-book-listener.c
(e_book_listener_queue_get_supported_fields_response): fix memory
leak.
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 379c2433c8..b77518f831 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -1190,18 +1190,21 @@ pas_backend_file_process_get_supported_fields (PASBackend *backend,
PASRequest *req)
{
EList *fields = e_list_new ((EListCopyFunc)g_strdup, (EListFreeFunc)g_free, NULL);
- ECardSimple *card;
+ ECardSimple *simple;
+ ECard *card;
int i;
/* we support everything, so instantiate an e-card, and loop
through all fields, adding their ecard_fields. */
- card = e_card_simple_new (e_card_new (""));
+ card = e_card_new ("");
+ simple = e_card_simple_new (card);
for (i = 0; i < E_CARD_SIMPLE_FIELD_LAST; i ++)
- e_list_append (fields, e_card_simple_get_ecard_field (card, i));
+ e_list_append (fields, e_card_simple_get_ecard_field (simple, i));
gtk_object_unref (GTK_OBJECT (card));
+ gtk_object_unref (GTK_OBJECT (simple));
pas_book_respond_get_supported_fields (book,
GNOME_Evolution_Addressbook_BookListener_Success,