From 93b3fbbd45e45ec24c9d06ee529840cc3c2d4f29 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 29 Dec 2013 20:27:41 +0000 Subject: when mmap_sa opens a database, it must decrypt it, change signature to mmap and die git-svn-id: http://svn.miranda-ng.org/main/trunk@7416 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index a66e814e30..ae2a0d8cd4 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -354,7 +354,7 @@ int tryOpenDatabase(const TCHAR *tszProfile) db_setCurrent(currDb = pDb); return 0; } - return 1; + delete pDb; } else { switch (err) { -- cgit v1.2.3