diff options
| author | Igor Khanin <igor@khanin.biz> | 2025-08-27 20:42:05 +0300 |
|---|---|---|
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2025-08-27 22:04:55 +0000 |
| commit | c02fe277a27794e12e8e0d234f71bcdeb158f0f4 (patch) | |
| tree | 51fddfd9eac70b475ef22dd2b7ca455d7265d07a /src/plugins/platforms/android/qandroidplatformopenglwindow.cpp | |
| parent | 757dc6770084028280fd2f2f0fa24b53b00c7764 (diff) | |
Fix memory leak in QCoreTextFontDatabase::addApplicationFont
The return value of CTFontDescriptorCreateCopyWithAttributes already has
retain count 1, and CFArrayAppendValue retains it again - so it leaks.
Due to this, memory is leaked every time an application font is added
on macOS from a data buffer. Wrap the the value in a QCFType to ensure
the local reference gets released.
Fixes: QTBUG-139600
Pick-to: 6.8 6.9 6.10
Change-Id: Iaedfea977627d214fe229ee675f321ad8255775a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformopenglwindow.cpp')
0 files changed, 0 insertions, 0 deletions
