summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorTopi Reiniƶ <topi.reinio@nokia.com>2010-10-11 10:39:49 (GMT)
committerTopi Reiniƶ <topi.reinio@nokia.com>2010-10-11 10:39:49 (GMT)
commita6e371076a3b2410af2424efc1407c6f5d0b6407 (patch)
treee3de595ffc0e0b5c0b6aa6ffe8bd81748e43d870 /src/gui/image
parent22fd9b9780389f51ab3dd1865d2b5686fa34e6ff (diff)
downloadQt-a6e371076a3b2410af2424efc1407c6f5d0b6407.zip
Qt-a6e371076a3b2410af2424efc1407c6f5d0b6407.tar.gz
Qt-a6e371076a3b2410af2424efc1407c6f5d0b6407.tar.bz2
Add TIFFClose to QTIffHandler::option() to avoid memory leak
Task-number: QTBUG-14261 Reviewed-by: aavit
Diffstat (limited to 'src/gui/image')
-rw-r--r--src/gui/image/qtiffhandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qtiffhandler.cpp b/src/gui/image/qtiffhandler.cpp
index de4f680..1627917 100644
--- a/src/gui/image/qtiffhandler.cpp
+++ b/src/gui/image/qtiffhandler.cpp
@@ -608,6 +608,7 @@ QVariant QTiffHandler::option(ImageOption option) const
TIFFGetField(tiff, TIFFTAG_IMAGEWIDTH, &width);
TIFFGetField(tiff, TIFFTAG_IMAGELENGTH, &height);
imageSize = QSize(width, height);
+ TIFFClose(tiff);
}
device()->seek(pos);
if (imageSize.isValid())