| Summary: | [Cocoa] _WKRemoteObjectInterface leaks NSString ivar | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
| Component: | WebKit2 | Assignee: | Joseph Pecoraro <joepeck> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | andersca, commit-queue, joepeck | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Joseph Pecoraro
2014-07-14 17:24:03 PDT
Created attachment 234895 [details]
[PATCH] Proposed Fix
Alternatively this could be an explicit ivar with RetainPtr.
Comment on attachment 234895 [details]
[PATCH] Proposed Fix
Please use a RetainPtr instead.
Comment on attachment 234895 [details] [PATCH] Proposed Fix Clearing flags on attachment: 234895 Committed r171098: <http://trac.webkit.org/changeset/171098> All reviewed patches have been landed. Closing bug. (In reply to comment #2) > (From update of attachment 234895 [details]) > Please use a RetainPtr instead. Heh, you should have cq-. I'll follow-up. (In reply to comment #5) > (In reply to comment #2) > > (From update of attachment 234895 [details] [details]) > > Please use a RetainPtr instead. > > Heh, you should have cq-. I'll follow-up. Oh, I think there was a review collision and the flags got overwritten. (In reply to comment #5) > (In reply to comment #2) > > (From update of attachment 234895 [details] [details]) > > Please use a RetainPtr instead. > > Heh, you should have cq-. I'll follow-up. The identifier property is (as written) atomic, so making an explicit RetainPtr<NSString> ivar and reimplementing the getter atomically seems like unnecessary extra work considering the simplicity of the current patch. Let me know if you feel strongly about this, or perhaps the atomic is unnecessary. (In reply to comment #7) > (In reply to comment #5) > > (In reply to comment #2) > > > (From update of attachment 234895 [details] [details] [details]) > > > Please use a RetainPtr instead. > > > > Heh, you should have cq-. I'll follow-up. > > The identifier property is (as written) atomic, so making an explicit RetainPtr<NSString> ivar and reimplementing the getter atomically seems like unnecessary extra work considering the simplicity of the current patch. Let me know if you feel strongly about this, or perhaps the atomic is unnecessary. Make it non-atomic instead. |