3ea179c
--- evolution-data-server-1.7.91/camel/providers/imap/camel-imap-search.c.maybe-fix-crash	2006-08-16 15:56:44.000000000 -0400
3ea179c
+++ evolution-data-server-1.7.91/camel/providers/imap/camel-imap-search.c	2006-08-16 15:57:09.000000000 -0400
3ea179c
@@ -342,8 +342,6 @@ sync_match(CamelImapSearch *is, struct _
3ea179c
 		}
3ea179c
 		g_string_append_c (search, '"');
3ea179c
 	}
3ea179c
-	camel_search_words_free (words);
3ea179c
-	
3ea179c
 	/* We only try search using utf8 if its non us-ascii text? */
3ea179c
 	if ((words->type & CAMEL_SEARCH_WORD_8BIT) &&  (store->capabilities & IMAP_CAPABILITY_utf8_search)) {
3ea179c
 		response = camel_imap_command (store, folder, NULL,
3ea179c
@@ -352,6 +350,8 @@ sync_match(CamelImapSearch *is, struct _
3ea179c
 		if (response == NULL)
3ea179c
 			store->capabilities &= ~IMAP_CAPABILITY_utf8_search;
3ea179c
 	}
3ea179c
+	camel_search_words_free (words);
3ea179c
+	
3ea179c
 	if (response == NULL)
3ea179c
 		response = camel_imap_command (store, folder, NULL,
3ea179c
 					       "UID SEARCH %s", search->str);