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()
|
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
|
||||||
@ -491,6 +492,7 @@ Statement::Ptr::~Ptr()
|
|||||||
}
|
}
|
||||||
// else, the finalization will be done later, by the last object
|
// else, the finalization will be done later, by the last object
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace SQLite
|
} // namespace SQLite
|
||||||
|
Loading…
x
Reference in New Issue
Block a user