static void mail_index_alloc_cache_list_free(struct mail_index_alloc_cache_list *list) { if (list->index->open_count > 0) mail_index_close(list->index); mail_index_free(&list->index); i_free(list->mailbox_path); i_free(list); }
static void mail_index_alloc_cache_list_free(struct mail_index_alloc_cache_list *list) { if (list->referenced) mail_index_close(list->index); mail_index_free(&list->index); i_free(list->mailbox_path); i_free(list); }
static void mail_index_alloc_cache_list_free(struct mail_index_alloc_cache_list *list) { i_assert(list->refcount == 0); if (list->referenced) mail_index_alloc_cache_list_unref(list); mail_index_free(&list->index); i_free(list->mailbox_path); i_free(list); }
void mdbox_map_deinit(struct mdbox_map **_map) { struct mdbox_map *map = *_map; *_map = NULL; if (map->view != NULL) { mail_index_view_close(&map->view); mail_index_close(map->index); } mail_index_free(&map->index); i_free(map->index_path); i_free(map->path); i_free(map); }