diff options
author | Jon Trowbridge <trow@ximian.com> | 2001-09-20 01:27:51 +0800 |
---|---|---|
committer | Jon Trowbridge <trow@src.gnome.org> | 2001-09-20 01:27:51 +0800 |
commit | 80b18f730d5f33d44f5800ba8e061432f9e62014 (patch) | |
tree | dde098a8a0167db6b3a71d882a9711490ec96752 | |
parent | 6d59ad08fdda41fae4ec8a28eb126d067e2570f0 (diff) | |
download | gsoc2013-evolution-80b18f730d5f33d44f5800ba8e061432f9e62014.tar gsoc2013-evolution-80b18f730d5f33d44f5800ba8e061432f9e62014.tar.gz gsoc2013-evolution-80b18f730d5f33d44f5800ba8e061432f9e62014.tar.bz2 gsoc2013-evolution-80b18f730d5f33d44f5800ba8e061432f9e62014.tar.lz gsoc2013-evolution-80b18f730d5f33d44f5800ba8e061432f9e62014.tar.xz gsoc2013-evolution-80b18f730d5f33d44f5800ba8e061432f9e62014.tar.zst gsoc2013-evolution-80b18f730d5f33d44f5800ba8e061432f9e62014.zip |
Freeing name[i] instead of namev[i] is a bad idea. (bug #10270)
2001-09-19 Jon Trowbridge <trow@ximian.com>
* backend/ebook/e-book-util.c (e_book_name_and_email_query):
Freeing name[i] instead of namev[i] is a bad idea. (bug #10270)
svn path=/trunk/; revision=12980
-rw-r--r-- | addressbook/ChangeLog | 3 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-book-util.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 619c419486..bc3a39a295 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,8 @@ 2001-09-19 Jon Trowbridge <trow@ximian.com> + * backend/ebook/e-book-util.c (e_book_name_and_email_query): + Freeing name[i] instead of namev[i] is a bad idea. (bug #10270) + * gui/component/select-names/e-select-names-popup.c (popup_menu_card): Properly handle our GnomeUIInfo labels so that they won't be leaked if they are dynamic strings, so that they diff --git a/addressbook/backend/ebook/e-book-util.c b/addressbook/backend/ebook/e-book-util.c index 5e291eb73c..7811629571 100644 --- a/addressbook/backend/ebook/e-book-util.c +++ b/addressbook/backend/ebook/e-book-util.c @@ -417,7 +417,7 @@ e_book_name_and_email_query (EBook *book, namev = g_strsplit (" ", name_cpy, 0); for (i=0; namev[i]; ++i) { if (*namev[i]) { - char *str = name[i]; + char *str = namev[i]; namev[i] = g_strdup_printf ("(contains \"file_as\" \"%s\")", namev[i]); ++count; |