aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog6
-rw-r--r--filter/filter-arg-types.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index cd7acabaee..60aaed7af4 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,9 @@
+2000-06-01 Christopher James Lahey <clahey@helixcode.com>
+
+ * filter-arg-types.c (arg_address_edit_value): Search for ad in
+ arg->values instead of text since it's a list of
+ filter_arg_adresses. Also, free the old value in the list.
+
2000-05-30 Not Zed <NotZed@HelixCode.com>
* filtertypes.xml: And here too.
diff --git a/filter/filter-arg-types.c b/filter/filter-arg-types.c
index fd0bb32248..95a7933828 100644
--- a/filter/filter-arg-types.c
+++ b/filter/filter-arg-types.c
@@ -347,8 +347,9 @@ arg_address_edit_value(FilterArg *arg, int index)
newtext = g_strdup(gtk_entry_get_text(entry));
gtk_object_unref((GtkObject *)entry);
if (index>=0
- && (node = g_list_find(arg->values, text))) {
+ && (node = g_list_find(arg->values, ad))) {
ad = node->data;
+ g_free(ad->email);
ad->email = newtext;
} else {
ad = g_malloc0(sizeof(*ad));