From: Timo Sirainen Date: Sat, 31 Jul 2010 18:44:24 +0000 (+0100) Subject: lib-storage: Fixed setting refcount to autocreated shared namespace. X-Git-Tag: 2.0.rc4~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba47b1a31e60c533631c8810400b365f785870a;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Fixed setting refcount to autocreated shared namespace. --- diff --git a/src/lib-storage/index/shared/shared-storage.c b/src/lib-storage/index/shared/shared-storage.c index 4341e0683f..3667aa1c19 100644 --- a/src/lib-storage/index/shared/shared-storage.c +++ b/src/lib-storage/index/shared/shared-storage.c @@ -251,6 +251,7 @@ int shared_storage_get_namespace(struct mail_namespace **_ns, /* create the new namespace */ new_ns = i_new(struct mail_namespace, 1); + new_ns->refcount = 1; new_ns->type = NAMESPACE_SHARED; new_ns->user = user; new_ns->prefix = i_strdup(str_c(prefix));