evolution-data-server r9050 - branches/camel-db-summary/camel



Author: psankar
Date: Thu Jun 26 09:32:02 2008
New Revision: 9050
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9050&view=rev

Log:
Free the query string if it is allocated.



Modified:
   branches/camel-db-summary/camel/camel-folder-search.c

Modified: branches/camel-db-summary/camel/camel-folder-search.c
==============================================================================
--- branches/camel-db-summary/camel/camel-folder-search.c	(original)
+++ branches/camel-db-summary/camel/camel-folder-search.c	Thu Jun 26 09:32:02 2008
@@ -162,8 +162,10 @@
 	g_hash_table_destroy(p->mempool_hash);
 	g_free(p);
 
-	g_print ("\nFinalizing search query and the query is : \n%s\n", search->query->str);
-	g_string_free (search->query, TRUE);
+	if (search->query) {
+		g_print ("\nFinalizing search query and the query is : \n%s\n", search->query->str);
+		g_string_free (search->query, TRUE);
+	}
 }
 
 CamelType



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]