diff options
author | Larry Ewing <lewing@helixcode.com> | 2000-05-03 04:54:37 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2000-05-03 04:54:37 +0800 |
commit | cce3d433328f1ec39203e8b5770c6cc2650259a5 (patch) | |
tree | 992f75c72b41ca35a76290ac5d54ae6e711c7eee /mail | |
parent | 44575d972d94ce00b0e7c5d46bbb59761d5c840d (diff) | |
download | gsoc2013-evolution-cce3d433328f1ec39203e8b5770c6cc2650259a5.tar gsoc2013-evolution-cce3d433328f1ec39203e8b5770c6cc2650259a5.tar.gz gsoc2013-evolution-cce3d433328f1ec39203e8b5770c6cc2650259a5.tar.bz2 gsoc2013-evolution-cce3d433328f1ec39203e8b5770c6cc2650259a5.tar.lz gsoc2013-evolution-cce3d433328f1ec39203e8b5770c6cc2650259a5.tar.xz gsoc2013-evolution-cce3d433328f1ec39203e8b5770c6cc2650259a5.tar.zst gsoc2013-evolution-cce3d433328f1ec39203e8b5770c6cc2650259a5.zip |
only free search if it is not NULL.
2000-05-02 Larry Ewing <lewing@helixcode.com>
* message-list.c (message_list_set_search): only free search if it
is not NULL.
svn path=/trunk/; revision=2754
Diffstat (limited to 'mail')
-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; |