diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-08-14 06:44:57 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-08-14 06:44:57 +0800 |
commit | ed41e07a8b10c106d6d2d8d53be928ca42a7c74d (patch) | |
tree | c43ca40be5c735803d5ff91fba102df2b72043ce /camel/camel-store.c | |
parent | 8ca5b30ddbcdb33c33e04478c9cb71e2910d0fc7 (diff) | |
download | gsoc2013-evolution-ed41e07a8b10c106d6d2d8d53be928ca42a7c74d.tar.gz gsoc2013-evolution-ed41e07a8b10c106d6d2d8d53be928ca42a7c74d.tar.zst gsoc2013-evolution-ed41e07a8b10c106d6d2d8d53be928ca42a7c74d.zip |
We need to be ref'ing the folder if/when we add it to the hash. This may
2001-08-13 Jeffrey Stedfast <fejj@ximian.com>
* camel-store.c (camel_store_get_folder): We need to be ref'ing
the folder if/when we add it to the hash. This may fix bug #6089?
(camel_store_get_folder): Nevermind, reverted the fix.
(camel_store_get_folder): No, I wasn't on crack before after
all...if we don't ref here, then we're open to a race condition
later.
svn path=/trunk/; revision=11973
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r-- | camel/camel-store.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c index 602e4e45c5..7abea71392 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -227,6 +227,7 @@ camel_store_get_folder (CamelStore *store, const char *folder_name, guint32 flag CAMEL_STORE_LOCK(store, cache_lock); g_hash_table_insert (store->folders, g_strdup (folder_name), folder); + camel_object_ref (CAMEL_OBJECT (folder)); camel_object_hook_event (CAMEL_OBJECT (folder), "finalize", folder_finalize, store); CAMEL_STORE_UNLOCK(store, cache_lock); |