QTDSDriver: fix index out of range
Follow-up to 5544208e2
.
Change-Id: Iba3ff291622533e8050ddc0494e4488233727ebe
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
0bdc86d9ef
commit
c8c8093561
@ -355,7 +355,7 @@ void QTDSResult::cleanup()
|
||||
d->clearErrorMsgs();
|
||||
d->rec.clear();
|
||||
for (int i = 0; i < d->buffer.size(); ++i)
|
||||
free(d->buffer.at(i * 2).data);
|
||||
free(d->buffer.at(i).data);
|
||||
d->buffer.clear();
|
||||
// "can" stands for "cancel"... very clever.
|
||||
dbcanquery(d->dbproc);
|
||||
|
Loading…
Reference in New Issue
Block a user