diff options
author | Alessandro Portale <alessandro.portale@nokia.com> | 2010-10-12 11:01:42 (GMT) |
---|---|---|
committer | Alessandro Portale <alessandro.portale@nokia.com> | 2010-10-12 11:02:12 (GMT) |
commit | 61d23b1740780b3c7970c9dd5d089002a35f339e (patch) | |
tree | 8855487b184443e49f2bc19b695df0fe1329df19 /src | |
parent | 71de6cd879f2f79900bda83cc4ba48f6df051d66 (diff) | |
download | Qt-61d23b1740780b3c7970c9dd5d089002a35f339e.zip Qt-61d23b1740780b3c7970c9dd5d089002a35f339e.tar.gz Qt-61d23b1740780b3c7970c9dd5d089002a35f339e.tar.bz2 |
Fix memory leak in QFontEngineS60::addGlyphsToPath()
An "Open()"ed RGlyphOutlineIterator needs to be "Close()"d
before destroying the iterator. Otherwise some allocated
memory does not get freed. The RGlyphOutlineIterator
destructor does not close an open iterator.
Task-Number: QTBUG-14408
Done-by: Colleague from Nokia, Oulu
Reviewed-by: Alessandro Portale
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qfontengine_s60.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qfontengine_s60.cpp b/src/gui/text/qfontengine_s60.cpp index 5980f20..653965e 100644 --- a/src/gui/text/qfontengine_s60.cpp +++ b/src/gui/text/qfontengine_s60.cpp @@ -308,6 +308,7 @@ void QFontEngineS60::addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, parseGlyphPathData(outlineChar, outlineEnd, *path, fontSizeInPixels, positions[count++].toPointF(), false); } while(KErrNone == iterator.Next() && count <= nglyphs); + iterator.Close(); #else // Q_SYMBIAN_HAS_GLYPHOUTLINE_API QFontEngine::addGlyphsToPath(glyphs, positions, nglyphs, path, flags); #endif //Q_SYMBIAN_HAS_GLYPHOUTLINE_API |