Bug 223823

Summary: WebFeature class fails to copy/retain its instance variables
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: WebKit Misc.Assignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch v1 none

David Kilzer (:ddkilzer)
Reported 2021-03-26 15:56:41 PDT
WebFeature class fails to copy/retain its instance variables despite what its @property declarations state. To fix this, I'm just going to add -copy methods in the init method, and add a -dealloc method that can be deleted when switching to ARC. Using RetainPtr<> for this class seems overkill.
Attachments
Patch v1 (2.41 KB, patch)
2021-03-26 15:58 PDT, David Kilzer (:ddkilzer)
no flags
David Kilzer (:ddkilzer)
Comment 1 2021-03-26 15:58:20 PDT
Created attachment 424412 [details] Patch v1
Sam Weinig
Comment 2 2021-03-26 17:27:04 PDT
Comment on attachment 424412 [details] Patch v1 I think Chris is trying to use RetainPtr everywhere, so we probably should here too, but you don't have to in this patch. I can do so in a follow up.
EWS
Comment 3 2021-03-26 21:47:07 PDT
Committed r275131: <https://commits.webkit.org/r275131> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424412 [details].
Radar WebKit Bug Importer
Comment 4 2021-03-26 21:48:12 PDT
David Kilzer (:ddkilzer)
Comment 5 2021-03-27 10:00:12 PDT
(In reply to Sam Weinig from comment #2) > Comment on attachment 424412 [details] > Patch v1 > > I think Chris is trying to use RetainPtr everywhere, so we probably should > here too, but you don't have to in this patch. I can do so in a follow up. Those were some speculative fixes to try to resolve some CoreIPC crashes if I remember correctly. I appreciate you offering to follow up on this.
Note You need to log in before you can comment on or make changes to this bug.