Fix Statement destructor since addition of the move constructor

This commit is contained in:
Sébastien Rombauts 2019-03-05 07:15:06 +01:00
parent f2b1017710
commit 50425142fe

View File

@ -473,7 +473,8 @@ Statement::Ptr::Ptr(Ptr&& aPtr) :
*/ */
Statement::Ptr::~Ptr() Statement::Ptr::~Ptr()
{ {
assert(NULL != mpRefCount); if (NULL != mpRefCount)
{
assert(0 != *mpRefCount); assert(0 != *mpRefCount);
// Decrement and check the reference counter of the sqlite3_stmt // Decrement and check the reference counter of the sqlite3_stmt
@ -490,6 +491,7 @@ Statement::Ptr::~Ptr()
mpStmt = NULL; mpStmt = NULL;
} }
// else, the finalization will be done later, by the last object // else, the finalization will be done later, by the last object
}
} }