summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r--plugins/Dbx_mdbx/src/dbcontacts.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp
index f59e57c4b3..320b479984 100644
--- a/plugins/Dbx_mdbx/src/dbcontacts.cpp
+++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp
@@ -26,7 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
STDMETHODIMP_(LONG) CDbxMDBX::GetContactCount(void)
{
MDBX_stat st;
- mdbx_dbi_stat(m_txn_ro, m_dbContacts, &st, sizeof(st));
+ txn_ptr_ro trnlck(m_txn_ro);
+ mdbx_dbi_stat(trnlck, m_dbContacts, &st, sizeof(st));
return st.ms_entries;
}