Skip to content

Fix memory leak when using small caps font

Albert Astals Cid requested to merge aacid/qtbase:QTBUG-93068 into kde/5.15

The small caps version of a font is kept as a QFontPrivate* which is manually reference counted, but we neglected to actually delete it when the reference count went to 0.

[ChangeLog][Fonts] Fixed a memory leak when initializing a small caps font.

Fixes: QTBUG-93068 Pick-to: 6.1 5.15 Change-Id: Icc7fb7a59bf523da84d2e6fa026940a7d1230525 Reviewed-by: Konstantin Ritt ritt.ks@gmail.com Reviewed-by: Robert Löhning robert.loehning@qt.io (cherry picked from commit 11a40def)

Merge request reports