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:
Mark Brand 2013-04-04 01:05:58 +02:00 committed by The Qt Project
parent 0bdc86d9ef
commit c8c8093561

View File

@ -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);