aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/message-list.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 249344a32d..5faaab16eb 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-11-03 Dan Winship <danw@helixcode.com>
+
+ * message-list.c (cleanup_regenerate_messagelist): don't free the
+ MessageList search when it's being reused
+
2000-11-03 Jeffrey Stedfast <fejj@helixcode.com>
* mail-local.c (mail_local_map_uri): Don't show the passwd in the
diff --git a/mail/message-list.c b/mail/message-list.c
index 768d3f6fdf..d28021f77e 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2109,7 +2109,7 @@ static void cleanup_regenerate_messagelist (gpointer in_data, gpointer op_data,
camel_folder_free_uids (input->ml->folder, data->uids);
/* update what we have as our search string */
- if (input->ml->search)
+ if (input->ml->search && input->ml->search != input->search)
g_free(input->ml->search);
input->ml->search = input->search;