From cce3d433328f1ec39203e8b5770c6cc2650259a5 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 2 May 2000 20:54:37 +0000 Subject: only free search if it is not NULL. 2000-05-02 Larry Ewing * message-list.c (message_list_set_search): only free search if it is not NULL. svn path=/trunk/; revision=2754 --- mail/message-list.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail/message-list.c') 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; -- cgit v1.2.3