Title: [232727] trunk/Tools
Revision
232727
Author
beid...@apple.com
Date
2018-06-11 12:55:42 -0700 (Mon, 11 Jun 2018)

Log Message

Followup to [Cocoa] Remove all uses of NSAutoreleasePool as part of preparation for ARC
https://bugs.webkit.org/show_bug.cgi?id=186436

Patch by Darin Adler
Reviewed by Brady Eidson.

* TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm:
(TestWebKitAPI::TEST):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (232726 => 232727)


--- trunk/Tools/ChangeLog	2018-06-11 19:35:04 UTC (rev 232726)
+++ trunk/Tools/ChangeLog	2018-06-11 19:55:42 UTC (rev 232727)
@@ -1,3 +1,14 @@
+2018-06-11  Brady Eidson  <beid...@apple.com>
+
+        Followup to [Cocoa] Remove all uses of NSAutoreleasePool as part of preparation for ARC
+        https://bugs.webkit.org/show_bug.cgi?id=186436
+
+        Patch by Darin Adler
+        Reviewed by Brady Eidson.
+
+        * TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm:
+        (TestWebKitAPI::TEST):
+
 2018-06-11  Mark Lam  <mark....@apple.com>
 
         Gardening: skip BigInt tests on iOS until the feature is stable.

Modified: trunk/Tools/TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm (232726 => 232727)


--- trunk/Tools/TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm	2018-06-11 19:35:04 UTC (rev 232726)
+++ trunk/Tools/TestWebKitAPI/Tests/mac/StopLoadingFromDidFinishLoading.mm	2018-06-11 19:55:42 UTC (rev 232727)
@@ -49,7 +49,8 @@
 {
     @autoreleasepool {
         auto webView = adoptNS([[WebView alloc] init]);
-        webView.get().resourceLoadDelegate = adoptNS([[StopLoadingFromDidFinishLoadingDelegate alloc] init]).get();
+        auto resourceLoadDelegate = adoptNS([[StopLoadingFromDidFinishLoadingDelegate alloc] init]);
+        webView.get().resourceLoadDelegate = resourceLoadDelegate.get();
         [webView.get().mainFrame loadHTMLString:@"Hello, World!" baseURL:[NSURL URLWithString:@""]];
         Util::run(&finished);
     }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to