diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-01-25 22:18:02 -0700 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2024-01-31 18:49:36 -0700 |
commit | ed49163c8fef019be18475b86694263801c3a8ea (patch) | |
tree | 02b19bf16b4bbe1e876e4ebb435e1bdc8ab71d31 /src/pdfwidgets | |
parent | 6015aca44fe96285fb79ef11559378bc2139e803 (diff) |
QPdfIOHandler: Ensure QPdfDocument still exists before rendering
If a PDF-viewing application is unceremoniously exited while
QQuickPixmapReader::processJobs() still has PDF rendering jobs
queued up, it could be that the shared QPdfDocument instance
is deleted just as QPdfIOHandler::read() starts the rendering.
Use a QPointer to avoid that.
Fixes: QTBUG-121502
Pick-to: 6.5 6.6 6.7
Change-Id: I5d0674ca77ab5015b710df49b3842064e65d4adc
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/pdfwidgets')
0 files changed, 0 insertions, 0 deletions