Leak of NSArray (4.25 Kbytes) in com.apple.WebKit.WebContent running WebKit layout...
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Feb 2019 20:20:36 +0000 (20:20 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 2 Feb 2019 20:20:36 +0000 (20:20 +0000)
<https://webkit.org/b/194178>
<rdar://problem/47753473>

Reviewed by Alexey Proskuryakov.

* WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
(WTR::uninstallFakeHelvetica): Pass nullptr into
CTFontManagerUnregisterFontsForURLs() to ignore any errors.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240900 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm

index 12ce420..c0ae8eb 100644 (file)
@@ -1,3 +1,15 @@
+2019-02-02  David Kilzer  <ddkilzer@apple.com>
+
+        Leak of NSArray (4.25 Kbytes) in com.apple.WebKit.WebContent running WebKit layout tests on iOS Simulator
+        <https://webkit.org/b/194178>
+        <rdar://problem/47753473>
+
+        Reviewed by Alexey Proskuryakov.
+
+        * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
+        (WTR::uninstallFakeHelvetica): Pass nullptr into
+        CTFontManagerUnregisterFontsForURLs() to ignore any errors.
+
 2019-02-02  Zalan Bujtas  <zalan@apple.com>
 
         [LFC] Initialize ICB's style with fixed width/height.
index 3fef2d5..3d6adf6 100644 (file)
@@ -154,8 +154,7 @@ void uninstallFakeHelvetica()
         if ([[url lastPathComponent] hasPrefix:@"FakeHelvetica"])
             [fontsToRemove addObject:url];
     }
-    CFArrayRef errors = nullptr;
-    CTFontManagerUnregisterFontsForURLs(static_cast<CFArrayRef>(fontsToRemove), kCTFontManagerScopeProcess, &errors);
+    CTFontManagerUnregisterFontsForURLs(static_cast<CFArrayRef>(fontsToRemove), kCTFontManagerScopeProcess, nullptr);
 }
 
 }