diff options
author | Jian Liang <jianliang79@gmail.com> | 2015-07-04 13:18:27 +0800 |
---|---|---|
committer | jian liang <jianliang79@gmail.com> | 2015-07-06 14:53:35 +0000 |
commit | 6f244dc84d87f382f584187b8758f6fa918c211c (patch) | |
tree | 05ab3b3fd8e0c2e79559dbb2b92f3085a04c689e /configure | |
parent | 8a928783b942ac5cc53e16eda07e418a6ac7d61d (diff) |
Fix memory leak in QJpegHandlerPrivate
Since the introduction of jpeg auto transform, it is possible to read jpeg
header after its state was changed from ReadHeaer to Ready which will lead
to creating some resources again without releasing them.
For example, if you call QImageReader::setAutoTransform(true) and then
call QImageReader::read(), QJpegHandlerPrivate::readJpegHeader() will be
called twice and it will allocate resource again without releasing the old
one.
This patch add a new state ReadingEnd to prevent the header from being
read twice.
Change-Id: If2497f6e3668958c0c792a66e1b77eb2773584a2
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions