From 7137cb09a1f7a4d36e9865d9c9e1f54d59ddbc68 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 27 Jan 2015 18:26:10 +0100 Subject: can not delete this as it is an opaque data structure instead, use the lmdb api --- common/storage_lmdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 98c1032..3f39192 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp @@ -417,7 +417,7 @@ void Storage::removeFromDisk() const qWarning() << "Failed to remove directory" << d->storageRoot << d->name; } auto env = d->sEnvironments.take(fullPath); - delete env; + mdb_env_close(env); } } // namespace Akonadi2 -- cgit v1.2.3