summaryrefslogtreecommitdiff
path: root/plugins/Dbx_kyoto/src/dbintf.cpp
diff options
context:
space:
mode:
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;