projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8888a5
)
fixed some precondition in folder item
author
Hoà Viêt Dinh
<dinh.viet.hoa@free.fr>
Fri, 26 Jul 2002 18:24:39 +0000
(18:24 +0000)
committer
Hoà Viêt Dinh
<dinh.viet.hoa@free.fr>
Fri, 26 Jul 2002 18:24:39 +0000
(18:24 +0000)
src/folder.c
patch
|
blob
|
history
diff --git
a/src/folder.c
b/src/folder.c
index cf2fb562b810c0fbbd260dfbda7f6de483391192..2944caa5da19b60744a96576d03bcf5bc358d944 100644
(file)
--- a/
src/folder.c
+++ b/
src/folder.c
@@
-282,12
+282,14
@@
void folder_item_destroy(FolderItem *item)
debug_print(_("Destroying folder item %s\n"), item->path);
- switch (item->folder->type) {
- case F_IMAP:
- imap_folder_item_destroy(item);
- break;
- default:
- break;
+ if (item->folder != NULL) {
+ switch (item->folder->type) {
+ case F_IMAP:
+ imap_folder_item_destroy(item);
+ break;
+ default:
+ break;
+ }
}
if(item->cache)