comparison src/lib-storage/mail-storage.c @ 15272:ca10d2e8d8e3

lib-storage: Moved mail attribute dict to struct mail_storage. This also means that index_storage_destroy() must always be called, so removed now unnecessary mail_storage.destroy=NULL checks.
author Timo Sirainen <tss@iki.fi>
date Mon, 29 Oct 2012 14:50:11 +0200
parents 40e6e734cd5e
children 1b46c1bf9d1e
comparison
equal deleted inserted replaced
15271:0f16da39121a 15272:ca10d2e8d8e3
411 if (storage->obj_refcount != 0) 411 if (storage->obj_refcount != 0)
412 i_panic("Trying to deinit storage before freeing its objects"); 412 i_panic("Trying to deinit storage before freeing its objects");
413 413
414 DLLIST_REMOVE(&storage->user->storages, storage); 414 DLLIST_REMOVE(&storage->user->storages, storage);
415 415
416 if (storage->v.destroy != NULL) 416 storage->v.destroy(storage);
417 storage->v.destroy(storage);
418 i_free(storage->error_string); 417 i_free(storage->error_string);
419 418
420 *_storage = NULL; 419 *_storage = NULL;
421 pool_unref(&storage->pool); 420 pool_unref(&storage->pool);
422 421