aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-store.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-03-03 14:39:38 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-03-03 14:39:38 +0800
commit65f1aefe075ecd0ba7bc19094bcb683ea4d7e5c1 (patch)
treefb0bf180797caa27e12d98c3fa5cd2206b9a94d5 /camel/camel-store.c
parent819f5057c5a061f4b93ffb5e61c76c9938661b1c (diff)
downloadgsoc2013-evolution-65f1aefe075ecd0ba7bc19094bcb683ea4d7e5c1.tar.gz
gsoc2013-evolution-65f1aefe075ecd0ba7bc19094bcb683ea4d7e5c1.tar.zst
gsoc2013-evolution-65f1aefe075ecd0ba7bc19094bcb683ea4d7e5c1.zip
Do similar folder != NULL checking as for delete_folder before passing a
2003-03-03 Not Zed <NotZed@Ximian.com> * camel-store.c (camel_store_unsubscribe_folder): Do similar folder != NULL checking as for delete_folder before passing a NULL to object_bag_remove. svn path=/trunk/; revision=20121
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r--camel/camel-store.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c
index 35adf8c6cd..852851f51b 100644
--- a/camel/camel-store.c
+++ b/camel/camel-store.c
@@ -1021,11 +1021,12 @@ camel_store_unsubscribe_folder (CamelStore *store,
CS_CLASS (store)->unsubscribe_folder (store, folder_name, ex);
- if (store->folders)
- camel_object_bag_remove(store->folders, folder);
+ if (folder) {
+ if (store->folders)
+ camel_object_bag_remove(store->folders, folder);
- if (folder)
camel_object_unref(folder);
+ }
CAMEL_STORE_UNLOCK(store, folder_lock);
}