** Fix for bug #543532

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.


svn path=/trunk/; revision=35850
This commit is contained in:
Milan Crha
2008-07-28 07:29:00 +00:00
committed by Milan Crha
parent c5f7464467
commit 338375efac
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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.
2008-07-28 Milan Crha <mcrha@redhat.com>
** Fix for bug #256540

View File

@ -882,8 +882,9 @@ em_folder_tree_model_remove_store_info (EMFolderTreeModel *model, CamelStore *st
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);
}