evolution r35850 - trunk/mail



Author: mcrha
Date: Mon Jul 28 07:29:00 2008
New Revision: 35850
URL: http://svn.gnome.org/viewvc/evolution?rev=35850&view=rev

Log:
2008-07-28  Milan Crha  <mcrha redhat com>

	** Fix for bug #543532

	* em-folder-tree-model.c: (em_folder_tree_model_remove_store_info):
	Let free memory when we are done with it, not before.



Modified:
   trunk/mail/ChangeLog
   trunk/mail/em-folder-tree-model.c

Modified: trunk/mail/em-folder-tree-model.c
==============================================================================
--- trunk/mail/em-folder-tree-model.c	(original)
+++ trunk/mail/em-folder-tree-model.c	Mon Jul 28 07:29:00 2008
@@ -882,8 +882,9 @@
 	if (!(si = g_hash_table_lookup (model->store_hash, store)))
 		return;
 
-	g_hash_table_remove (model->store_hash, si->store);
 	g_hash_table_remove (model->account_hash, si->account);
+	/* store_hash owns and frees the si structure, thus free it after done with it */
+	g_hash_table_remove (model->store_hash, si->store);
 }
 
 



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