aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-06-25 13:48:45 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-06-25 13:48:45 +0800
commitd11dd5c6a7561f5e8de21287976ac54ce6eed56d (patch)
tree8f68f4f18cce27f194727b0c54eeea8a035796a6 /addressbook/backend
parent84355c0bc00b4cc101afc0f5e67ccfcdf6c0f055 (diff)
downloadgsoc2013-evolution-d11dd5c6a7561f5e8de21287976ac54ce6eed56d.tar
gsoc2013-evolution-d11dd5c6a7561f5e8de21287976ac54ce6eed56d.tar.gz
gsoc2013-evolution-d11dd5c6a7561f5e8de21287976ac54ce6eed56d.tar.bz2
gsoc2013-evolution-d11dd5c6a7561f5e8de21287976ac54ce6eed56d.tar.lz
gsoc2013-evolution-d11dd5c6a7561f5e8de21287976ac54ce6eed56d.tar.xz
gsoc2013-evolution-d11dd5c6a7561f5e8de21287976ac54ce6eed56d.tar.zst
gsoc2013-evolution-d11dd5c6a7561f5e8de21287976ac54ce6eed56d.zip
Add a huge steaming pile of code to handle the case of single-address
2001-06-25 Jon Trowbridge <trow@ximian.com> * gui/component/e-address-popup.c: Add a huge steaming pile of code to handle the case of single-address merging. In other words, if you go to "harvest" an address by right-clicking on it in the mail viewer, and you already have a closely-matching contact (w/ a different e-mail address), this gives you the option of editting that contact's e-mail addresses to add the one you just clicked on. * backend/ebook/e-card-compare.c (match_search_info_free): It is amazing how much better things work when you don't try to dereference the pointer you just freed. svn path=/trunk/; revision=10469
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/ebook/e-card-compare.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/addressbook/backend/ebook/e-card-compare.c b/addressbook/backend/ebook/e-card-compare.c
index 6f5cf86de9..92f1cc9099 100644
--- a/addressbook/backend/ebook/e-card-compare.c
+++ b/addressbook/backend/ebook/e-card-compare.c
@@ -336,11 +336,14 @@ match_search_info_free (MatchSearchInfo *info)
{
if (info) {
gtk_object_unref (GTK_OBJECT (info->card));
- g_free (info);
-
+
/* This should already have been deallocated, but just in case... */
- g_list_foreach (info->avoid, (GFunc) gtk_object_unref, NULL);
- g_list_free (info->avoid);
+ if (info->avoid) {
+ g_list_foreach (info->avoid, (GFunc) gtk_object_unref, NULL);
+ g_list_free (info->avoid);
+ }
+
+ g_free (info);
}
}