Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.6, 5.15.0 RC2
-
None
-
Windows
-
-
26100ccb83ec9c4a2ee192170f1952956dd569d1 (qt/qtbase/dev) 253d3a34fcbab24fd091d03bbc76e92e71290335 (qt/qtbase/5.15) 232bd0a05f517c55cfe15d509697b15b90dcfe6e (qt/qtbase/5.12)
Description
QWindowsFontDatabase::createEngine called QueryInterface but never Release on the queried interface. The CreateFontFaceFromHdc cause another release when use direct write engine.
When system contains about 3000 fonts, and called QFontInfo.family on each font, it will crashes the program due to not enough memory resources caused by the interface memory leak.
The attachment fixed the problem.
Attachments
For Gerrit Dashboard: QTBUG-84265 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
300787,2 | Direct Write Font Engine: Fix leaking IDWriteFontFace instances | dev | qt/qtbase | Status: MERGED | +2 | 0 |
300854,2 | Direct Write Font Engine: Fix leaking IDWriteFontFace instances | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |
300855,2 | Direct Write Font Engine: Fix leaking IDWriteFontFace instances | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |