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
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.
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