aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-06-21 12:30:06 +0800
committerChris Toshok <toshok@src.gnome.org>2001-06-21 12:30:06 +0800
commit67961cf692522cfb8415f336efb97ffddae9ca93 (patch)
tree8710c977b269fd29a6ed42ea882a09b4971dba07
parent7b529b4df25ebdecf84ebbb974060534cf1d776e (diff)
downloadgsoc2013-evolution-67961cf692522cfb8415f336efb97ffddae9ca93.tar
gsoc2013-evolution-67961cf692522cfb8415f336efb97ffddae9ca93.tar.gz
gsoc2013-evolution-67961cf692522cfb8415f336efb97ffddae9ca93.tar.bz2
gsoc2013-evolution-67961cf692522cfb8415f336efb97ffddae9ca93.tar.lz
gsoc2013-evolution-67961cf692522cfb8415f336efb97ffddae9ca93.tar.xz
gsoc2013-evolution-67961cf692522cfb8415f336efb97ffddae9ca93.tar.zst
gsoc2013-evolution-67961cf692522cfb8415f336efb97ffddae9ca93.zip
fix memory leak.
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. svn path=/trunk/; revision=10350
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/ebook/e-book-listener.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 3f0fb43119..6d686dc52c 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2001-06-20 Chris Toshok <toshok@ximian.com>
+
* contact-editor/e-contact-editor.c: add prototype for
close_dialog to remove warnings.
diff --git a/addressbook/backend/ebook/e-book-listener.c b/addressbook/backend/ebook/e-book-listener.c
index b483d10d87..80eff4f3ca 100644
--- a/addressbook/backend/ebook/e-book-listener.c
+++ b/addressbook/backend/ebook/e-book-listener.c
@@ -233,7 +233,7 @@ e_book_listener_queue_get_supported_fields_response (EBookListener *listener,
resp->fields = e_list_new ((EListCopyFunc)g_strdup, (EListFreeFunc)g_free, NULL);
for (i = 0; i < fields->_length; i ++) {
- e_list_append (resp->fields, g_strdup (fields->_buffer[i]));
+ e_list_append (resp->fields, fields->_buffer[i]);
}
e_book_listener_queue_response (listener, resp);