aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@helixcode.com>2000-05-03 04:54:37 +0800
committerLarry Ewing <lewing@src.gnome.org>2000-05-03 04:54:37 +0800
commitcce3d433328f1ec39203e8b5770c6cc2650259a5 (patch)
tree992f75c72b41ca35a76290ac5d54ae6e711c7eee /mail/message-list.c
parent44575d972d94ce00b0e7c5d46bbb59761d5c840d (diff)
downloadgsoc2013-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/message-list.c')
-rw-r--r--mail/message-list.c7
1 files changed, 6 insertions, 1 deletions
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;