summaryrefslogtreecommitdiff
path: root/plugins/Dbx_kyoto/src/dbintf.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-05 12:47:33 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-05 12:47:33 +0000
commitb16ff48e46b50ecedbc7ae448cf91c8915fedd3b (patch)
tree41dc25b6b9d385845b8dc9fc119d47e2abd9bb0d /plugins/Dbx_kyoto/src/dbintf.cpp
parent8717c665cc0c324e3732a3350571069d9aecf539 (diff)
minor speed improvement
git-svn-id: http://svn.miranda-ng.org/main/trunk@12608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_kyoto/src/dbintf.cpp')
-rw-r--r--plugins/Dbx_kyoto/src/dbintf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Dbx_kyoto/src/dbintf.cpp b/plugins/Dbx_kyoto/src/dbintf.cpp
index bd43f0fa7d..6a4af0a824 100644
--- a/plugins/Dbx_kyoto/src/dbintf.cpp
+++ b/plugins/Dbx_kyoto/src/dbintf.cpp
@@ -97,6 +97,8 @@ CDbxKyoto::CDbxKyoto(const TCHAR *tszFileName, int iMode) :
CDbxKyoto::~CDbxKyoto()
{
+ delete m_evCursor;
+
m_dbContacts.close();
m_dbModules.close();
m_dbEvents.close();
@@ -172,6 +174,8 @@ int CDbxKyoto::Load(bool bSkipInit)
m_dbContacts.set((LPCSTR)&keyVal, sizeof(keyVal), (LPCSTR)&dbc, sizeof(dbc));
}
+ m_evCursor = m_dbEventsSort.cursor();
+
if (InitModuleNames()) return EGROKPRF_CANTREAD;
if (InitCrypt()) return EGROKPRF_CANTREAD;