From b16ff48e46b50ecedbc7ae448cf91c8915fedd3b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 5 Apr 2015 12:47:33 +0000 Subject: minor speed improvement git-svn-id: http://svn.miranda-ng.org/main/trunk@12608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_kyoto/src/dbintf.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/Dbx_kyoto/src/dbintf.cpp') 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; -- cgit v1.2.3