WebKitTestRunner leaks in generateWhitelist()
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Oct 2015 21:47:13 +0000 (21:47 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Oct 2015 21:47:13 +0000 (21:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=150563

Reviewed by Andreas Kling.

* WebKitTestRunner/mac/TestControllerMac.mm:
(WTR::generateWhitelist):

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

Tools/ChangeLog
Tools/WebKitTestRunner/mac/TestControllerMac.mm

index 0adc346..62b421d 100644 (file)
@@ -1,3 +1,13 @@
+2015-10-27  Alexey Proskuryakov  <ap@apple.com>
+
+        WebKitTestRunner leaks in generateWhitelist()
+        https://bugs.webkit.org/show_bug.cgi?id=150563
+
+        Reviewed by Andreas Kling.
+
+        * WebKitTestRunner/mac/TestControllerMac.mm:
+        (WTR::generateWhitelist):
+
 2015-10-27  Anders Carlsson  <andersca@apple.com>
 
         Add an API test for _WKRemoteObjectRegistry
index cefdacf..94ffed1 100644 (file)
@@ -277,7 +277,7 @@ static WKRetainPtr<WKArrayRef> generateWhitelist()
     }
 
     for (NSString *hiddenFontFamily in systemHiddenFontFamilySet())
-        WKArrayAppendItem(result, WKStringCreateWithUTF8CString([hiddenFontFamily UTF8String]));
+        WKArrayAppendItem(result, adoptWK(WKStringCreateWithUTF8CString([hiddenFontFamily UTF8String])).get());
 
     return adoptWK(result);
 }