Fix three leaks
Created attachment 226346 [details] Patch
Comment on attachment 226346 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=226346&action=review > Source/WebCore/page/ios/UserAgentIOS.mm:47 > + RetainPtr<NSDictionary> systemInfo = adoptNS([[NSDictionary alloc] initWithContentsOfFile:[platformSystemRootDirectory() stringByAppendingPathComponent:@"System/Library/CoreServices/SystemVersion.plist"]]); Can just use auto systemInfo =.
https://trac.webkit.org/r165412
Comment on attachment 226346 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=226346&action=review > Source/WebKit2/Shared/API/Cocoa/WKRemoteObjectCoder.mm:512 > + return [result autorelease]; Shouldn't this also release result in the NSException raise cases if the alloc succeeded? Could the autorelease move up to line 500?