Title: [114327] trunk/Source/WebKit2
Revision
114327
Author
beid...@apple.com
Date
2012-04-16 17:35:09 -0700 (Mon, 16 Apr 2012)

Log Message

Followup to http://trac.webkit.org/changeset/114323

For more correctness, actually include an autorelease pool instead of cleverly trying to avoid its use.

Reviewed by Mark Rowe.

* PluginProcess/mac/PluginProcessMainMac.mm:
(WebKit::PluginProcessMain):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (114326 => 114327)


--- trunk/Source/WebKit2/ChangeLog	2012-04-17 00:35:01 UTC (rev 114326)
+++ trunk/Source/WebKit2/ChangeLog	2012-04-17 00:35:09 UTC (rev 114327)
@@ -1,5 +1,16 @@
 2012-04-16  Brady Eidson  <beid...@apple.com>
 
+        Followup to http://trac.webkit.org/changeset/114323
+
+        For more correctness, actually include an autorelease pool instead of cleverly trying to avoid its use.
+
+        Reviewed by Mark Rowe.
+
+        * PluginProcess/mac/PluginProcessMainMac.mm:
+        (WebKit::PluginProcessMain): 
+
+2012-04-16  Brady Eidson  <beid...@apple.com>
+
         <rdar://problem/11238965> Leak in Plugin Process when launched 32-bit
 
         Reviewed by Jessie Berlin.

Modified: trunk/Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm (114326 => 114327)


--- trunk/Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm	2012-04-17 00:35:01 UTC (rev 114326)
+++ trunk/Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm	2012-04-17 00:35:09 UTC (rev 114327)
@@ -89,9 +89,15 @@
         WKSetDefaultLocalization(cfLocalization.get());
 
 #if defined(__i386__)
-    NSDictionary *defaults = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"AppleMagnifiedMode", nil];
-    [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
-    [defaults release];
+    {
+        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+        NSDictionary *defaults = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"AppleMagnifiedMode", nil];
+        [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
+        [defaults release];
+
+        [pool drain];
+    }
 #endif
 
 #if !SHOW_CRASH_REPORTER
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to