diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-store.c | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 29be0f4807..8c8c790ffc 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2003-02-26 Jeffrey Stedfast <fejj@ximian.com> + + * camel-store.c (camel_store_delete_folder): Make sure the folder + is non-NULL before trying to remove it from the store's + object-bag. + 2003-02-25 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-part-utils.c diff --git a/camel/camel-store.c b/camel/camel-store.c index e023460bf6..35adf8c6cd 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -333,12 +333,13 @@ camel_store_delete_folder (CamelStore *store, const char *folder_name, CamelExce } CS_CLASS (store)->delete_folder (store, folder_name, ex); - - if (store->folders) - camel_object_bag_remove(store->folders, folder); - - if (folder) - camel_object_unref(folder); + + if (folder) { + if (store->folders) + camel_object_bag_remove (store->folders, folder); + + camel_object_unref (folder); + } CAMEL_STORE_UNLOCK(store, folder_lock); } |