Followup to http://trac.webkit.org/changeset/114323
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 00:35:09 +0000 (00:35 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 17 Apr 2012 00:35:09 +0000 (00:35 +0000)
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):

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

Source/WebKit2/ChangeLog
Source/WebKit2/PluginProcess/mac/PluginProcessMainMac.mm

index 48542dd..72b233c 100644 (file)
@@ -1,5 +1,16 @@
 2012-04-16  Brady Eidson  <beidson@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  <beidson@apple.com>
+
         <rdar://problem/11238965> Leak in Plugin Process when launched 32-bit
 
         Reviewed by Jessie Berlin.
index eee5644..0ee4cb6 100644 (file)
@@ -89,9 +89,15 @@ int PluginProcessMain(const CommandLine& commandLine)
         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