mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
Fix Statement destructor since addition of the move constructor
This commit is contained in:
parent
f2b1017710
commit
50425142fe
@ -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
|
||||
@ -490,6 +491,7 @@ Statement::Ptr::~Ptr()
|
||||
mpStmt = NULL;
|
||||
}
|
||||
// else, the finalization will be done later, by the last object
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user