diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-09-06 04:08:10 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-09-06 04:08:10 +0800 |
commit | b1e66c4c60ca6d52c0a164a510e5199ca201bf98 (patch) | |
tree | 8a3bdab58ee5ba9a3374c77fa867bd19585a05ed /camel/providers/imap/camel-imap-folder.c | |
parent | a86c7ea0ab3775cc8fb141c1792c3b2bdb663a34 (diff) | |
download | gsoc2013-evolution-b1e66c4c60ca6d52c0a164a510e5199ca201bf98.tar gsoc2013-evolution-b1e66c4c60ca6d52c0a164a510e5199ca201bf98.tar.gz gsoc2013-evolution-b1e66c4c60ca6d52c0a164a510e5199ca201bf98.tar.bz2 gsoc2013-evolution-b1e66c4c60ca6d52c0a164a510e5199ca201bf98.tar.lz gsoc2013-evolution-b1e66c4c60ca6d52c0a164a510e5199ca201bf98.tar.xz gsoc2013-evolution-b1e66c4c60ca6d52c0a164a510e5199ca201bf98.tar.zst gsoc2013-evolution-b1e66c4c60ca6d52c0a164a510e5199ca201bf98.zip |
Cleanup of lots of exception handling ; bugfixes
svn path=/trunk/; revision=5202
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index c4c26db300..5b55f6bf9a 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -191,11 +191,21 @@ camel_imap_folder_new (CamelStore *parent, char *folder_name, CamelException *ex CF_CLASS (folder)->init (folder, parent, NULL, folder_name, dir_sep, FALSE, ex); + if (camel_exception_is_set (ex)) { + camel_object_unref (CAMEL_OBJECT (folder)); + return NULL; + } + if (!strcmp (folder_name, url->path + 1)) folder->can_hold_messages = FALSE; CF_CLASS (folder)->refresh_info (folder, ex); + if (camel_exception_is_set (ex)) { + camel_object_unref (CAMEL_OBJECT (folder)); + return NULL; + } + return folder; } |