summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp
diff options
context:
space:
mode:
authorMikolaj Boc <mikolaj.boc@qt.io>2022-12-19 16:41:46 +0100
committerMikolaj Boc <mikolaj.boc@qt.io>2022-12-22 12:16:02 +0100
commitcc60d70699019030a8cba777de5c46b4f4b8b31a (patch)
tree0fe3c503c4fe1799acd6e9163166ec380039f114 /tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp
parent8420d3e0b205d0ef2367224afd3040c68e28bcc9 (diff)
Avoid mutual ownership in qstdweb's File::stream
The mutual ownership of chunkCompleted<->fileReader caused both not to be freed, which resulted in a memory leak. Resolve this by introducing the ChunkedFileReader class which owns itself until file read is finished. Also, resolve a similar issue in qwasmlocalfileaccess. Fixes: QTBUG-109436 Pick-to: 6.5 Change-Id: Ieec4cde15a893fa6a2e21a62d3bb6637374c5364 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel/qsqldatabase/tst_qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions