diff options
author | Milan Crha <mcrha@redhat.com> | 2008-07-28 15:29:00 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-07-28 15:29:00 +0800 |
commit | 338375efacaf594ab9759845ce88fbf8ea6a0f4b (patch) | |
tree | 90ef13906eccaf4b35bd9c2918bda74d9dcc98cb /mail/em-folder-tree-model.c | |
parent | c5f7464467beeb50c932b5ee1392951103b28ac8 (diff) | |
download | gsoc2013-evolution-338375efacaf594ab9759845ce88fbf8ea6a0f4b.tar gsoc2013-evolution-338375efacaf594ab9759845ce88fbf8ea6a0f4b.tar.gz gsoc2013-evolution-338375efacaf594ab9759845ce88fbf8ea6a0f4b.tar.bz2 gsoc2013-evolution-338375efacaf594ab9759845ce88fbf8ea6a0f4b.tar.lz gsoc2013-evolution-338375efacaf594ab9759845ce88fbf8ea6a0f4b.tar.xz gsoc2013-evolution-338375efacaf594ab9759845ce88fbf8ea6a0f4b.tar.zst gsoc2013-evolution-338375efacaf594ab9759845ce88fbf8ea6a0f4b.zip |
** 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
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |