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()
{
assert(NULL != mpRefCount);
if (NULL != mpRefCount)
{
assert(0 != *mpRefCount);
// Decrement and check the reference counter of the sqlite3_stmt
@ -491,6 +492,7 @@ Statement::Ptr::~Ptr()
}
// else, the finalization will be done later, by the last object
}
}
} // namespace SQLite