Skip to content

Commit b776c38

Browse files
author
stoeckerb
committed
1 parent 4f1fc0a commit b776c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/qsql_mysql.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void QMYSQLResult::cleanup()
428428
}
429429

430430
for (const auto &field : qAsConst(d->fields)) {
431-
if (qIsTimeOrDate(field.myField->type))
431+
if (field.myField!=nullptr&& qIsTimeOrDate(field.myField->type))
432432
reinterpret_cast<MYSQL_TIME *>(field.outField)->~MYSQL_TIME();
433433
delete[] field.outField;
434434
}

0 commit comments

Comments
 (0)