summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbintf.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-09-23 16:29:02 +0300
committeraunsane <aunsane@gmail.com>2018-09-23 16:29:02 +0300
commit6e085b274205448082c43f1669d7dfed1ff75dfe (patch)
treedca2395ceffa428a5886a5251d9b36bfb5d8b18c /plugins/Dbx_sqlite/src/dbintf.cpp
parent89a3160416316af2ff0b8de9b247583a4ac103f8 (diff)
dbx_sqlite: more fixes
- contacts: correct loading of mc's into cache - events: fix queries - codrrect deinit of sql statements
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.cpp')
-rw-r--r--plugins/Dbx_sqlite/src/dbintf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp
index e52da92919..8b73517791 100644
--- a/plugins/Dbx_sqlite/src/dbintf.cpp
+++ b/plugins/Dbx_sqlite/src/dbintf.cpp
@@ -22,9 +22,9 @@ CDbxSQLite::~CDbxSQLite()
DestroyHookableEvent(hEventMarkedRead);
DestroyHookableEvent(hSettingChangeEvent);
- InitContacts();
- InitEvents();
- InitSettings();
+ UninitEvents();
+ UninitContacts();
+ UninitSettings();
if (m_db) {
sqlite3_close(m_db);
@@ -101,9 +101,9 @@ MDatabaseCommon* CDbxSQLite::Load(const wchar_t *profile, int readonly)
sqlite3_exec(database, "commit;", nullptr, nullptr, nullptr);
CDbxSQLite *db = new CDbxSQLite(database);
+ db->InitSettings();
db->InitContacts();
db->InitEvents();
- db->InitSettings();
return db;
}