diff options
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 310bd084aa..671fe75142 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -236,7 +236,8 @@ camel_folder_construct (CamelFolder *folder, CamelStore *parent_store, g_return_if_fail (folder->name == NULL); folder->parent_store = parent_store; - camel_object_ref (CAMEL_OBJECT (parent_store)); + if (parent_store) + camel_object_ref (CAMEL_OBJECT (parent_store)); folder->name = g_strdup (name); folder->full_name = g_strdup (full_name); |