aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/message-list.c10
2 files changed, 12 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 543655d21f..4366a088d4 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-04 Ettore Perazzoli <ettore@helixcode.com>
+
+ * message-list.c (message_list_regenerate): Free the GPtrArray
+ correctly instead of using `g_strfreev()'.
+
2000-08-04 Michael Meeks <michael@helixcode.com>
* folder-browser-factory.c (control_activate): release the ui_handler
diff --git a/mail/message-list.c b/mail/message-list.c
index f2565866d4..91a177ffc4 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -850,10 +850,14 @@ message_list_regenerate (MessageList *message_list, const char *search)
build_flat (message_list, message_list->tree_root, uids);
if (search) {
- g_strfreev ((char **)uids->pdata);
- g_ptr_array_free (uids, FALSE);
- } else
+ int i;
+
+ for (i = 0; i < uids->len; i++)
+ g_free (g_ptr_array_index (uids, i));
+ g_ptr_array_free (uids, TRUE);
+ } else {
camel_folder_free_uids (message_list->folder, uids);
+ }
e_table_model_changed (message_list->table_model);
select_msg (message_list, 0);