Commit 67be01ae authored by Honglei Zhang's avatar Honglei Zhang Committed by Qt by Nokia
Browse files

Check driver validity before using it


Even though it is stated in the documentation that the SQL driver must
remain valid during the life time of QSqlQuery, there are users who don't
follow the rule. It's common that the destructor of QSqlQuery is called
after the driver is already deleted. This fix checks the validity of
the SQLite driver before QSqliteResult uses it in destructor.

Task-number: QTBUG-16967
Change-Id: If0f52113f12e14102da1671cd6e12bdaa267114f
Reviewed-by: default avatarYunqiao Yin <charles.yin@nokia.com>
parent b9ebb65c
No related merge requests found
Showing with 14 additions and 6 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment