Summary: | Memory Leak in CoreIPC::decodeResourceError | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Saboff <msaboff> | ||||
Component: | WebKit2 | Assignee: | Michael Saboff <msaboff> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | ||||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Michael Saboff
2011-04-06 18:35:50 PDT
Created attachment 88555 [details]
Patch to wrap NSError allocation with autorelease
Comment on attachment 88555 [details]
Patch to wrap NSError allocation with autorelease
r=me
(But why autorelease instead of release? Explicit release is usually better.)
Comment on attachment 88555 [details] Patch to wrap NSError allocation with autorelease View in context: https://bugs.webkit.org/attachment.cgi?id=88555&action=review > Source/WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm:188 > + NSError *nsError = [[[NSError alloc] initWithDomain:nsString(domain) code:code userInfo:userInfo] autorelease]; A plain old release is much faster than autorelease, so it would be better to do it that way. Committed r83177: <http://trac.webkit.org/changeset/83177> |