diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/message-list.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 153c5c3915..03bf78a082 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-05-02 Larry Ewing <lewing@helixcode.com> + + * message-list.c (message_list_set_search): only free search if it + is not NULL. + 2000-05-02 NotZed <NotZed@HelixCode.com> * folder-browser.c (folder_browser_gui_init): Connect the changed diff --git a/mail/message-list.c b/mail/message-list.c index 067c3616d7..776d389220 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -690,7 +690,12 @@ message_list_set_search (MessageList *message_list, const char *search) g_list_free(message_list->matches); message_list->matches = NULL; } - g_free(message_list->search); + + if (message_list->search) { + g_free(message_list->search); + message_list->search = NULL; + } + if (search) { CamelException ex; |