diff options
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.cpp')
-rw-r--r-- | plugins/Dbx_sqlite/src/dbintf.cpp | 8 |
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; } |