From 338375efacaf594ab9759845ce88fbf8ea6a0f4b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 28 Jul 2008 07:29:00 +0000 Subject: [PATCH] ** Fix for bug #543532 2008-07-28 Milan Crha ** 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 --- mail/ChangeLog | 7 +++++++ mail/em-folder-tree-model.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 12c745f9d9..7e7a32c2d0 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2008-07-28 Milan Crha + + ** 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 ** Fix for bug #256540 diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 7037479c96..eb6191199e 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -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); }