Summary: | Don't autorelease wrapper object (WebProcessPlugInScriptWorld) for InjectedBundleScriptWorld::normalWorld(). | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yongjun Zhang <yongjun_zhang> | ||||
Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | andersca, commit-queue, ggaren, mitz, sam | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Yongjun Zhang
2014-01-15 16:07:16 PST
This is referring to the method [WKWebProcessPlugInScriptWorld normalWorld]: + (WKWebProcessPlugInScriptWorld *)normalWorld { return [wrapper(*InjectedBundleScriptWorld::normalWorld()) autorelease]; } Created attachment 221313 [details]
Patch.
Comment on attachment 221313 [details]
Patch.
What about all the other uses of the "[wrapper(X) autorelease]" idiom, like the "world" selector in the same file, and a bunch of others?
(In reply to comment #3) > (From update of attachment 221313 [details]) > What about all the other uses of the "[wrapper(X) autorelease]" idiom, like the "world" selector in the same file, and a bunch of others? I see. In all other cases, we only autorelease after allocating or ref-ing. Comment on attachment 221313 [details]
Patch.
r=me
Sadly, I am not a WK2 owner :(.
r=me too Comment on attachment 221313 [details] Patch. Clearing flags on attachment: 221313 Committed r162106: <http://trac.webkit.org/changeset/162106> All reviewed patches have been landed. Closing bug. |