Title: [250031] trunk/Source/WebCore
- Revision
- 250031
- Author
- [email protected]
- Date
- 2019-09-18 04:30:16 -0700 (Wed, 18 Sep 2019)
Log Message
REGRESSION (r247566): Leak of UICTFontDescriptor in WebCore::FontDatabase::InstalledFont::InstalledFont()
<https://webkit.org/b/201893>
<rdar://problem/55464115>
Reviewed by Brent Fulgham.
* platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::FontDatabase::InstalledFont::InstalledFont): Use
adoptCF() to fix the leak.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (250030 => 250031)
--- trunk/Source/WebCore/ChangeLog 2019-09-18 10:33:16 UTC (rev 250030)
+++ trunk/Source/WebCore/ChangeLog 2019-09-18 11:30:16 UTC (rev 250031)
@@ -1,3 +1,15 @@
+2019-09-18 David Kilzer <[email protected]>
+
+ REGRESSION (r247566): Leak of UICTFontDescriptor in WebCore::FontDatabase::InstalledFont::InstalledFont()
+ <https://webkit.org/b/201893>
+ <rdar://problem/55464115>
+
+ Reviewed by Brent Fulgham.
+
+ * platform/graphics/cocoa/FontCacheCoreText.cpp:
+ (WebCore::FontDatabase::InstalledFont::InstalledFont): Use
+ adoptCF() to fix the leak.
+
2019-09-18 Yusuke Suzuki <[email protected]>
Make all ScriptWrappable IsoHeap-ed
Modified: trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp (250030 => 250031)
--- trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp 2019-09-18 10:33:16 UTC (rev 250030)
+++ trunk/Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp 2019-09-18 11:30:16 UTC (rev 250031)
@@ -895,7 +895,7 @@
return;
auto attributes = adoptCF(CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks));
addAttributesForInstalledFonts(attributes.get(), allowUserInstalledFonts);
- this->fontDescriptor = CTFontDescriptorCreateCopyWithAttributes(fontDescriptor, attributes.get());
+ this->fontDescriptor = adoptCF(CTFontDescriptorCreateCopyWithAttributes(fontDescriptor, attributes.get()));
#endif
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes