| Summary: | REGRESSION (r244091): Leak of TaskStateChangedCallbackType due to missing -dealloc | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> | ||||||
| Component: | Media | Assignee: | David Kilzer (:ddkilzer) <ddkilzer> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | darin, eric.carlson, jer.noble, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Other | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | 196659 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
David Kilzer (:ddkilzer)
2020-04-18 19:26:57 PDT
Created attachment 396887 [details]
Patch v1
Comment on attachment 396887 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=396887&action=review > Source/WebKit/Shared/Cocoa/ProcessTaskStateObserver.mm:46 > +- (void)dealloc I chose to implement dealloc because using RetainPtr<> would require an instance variable and a custom getter (and maybe a setter). When switching to ARC, we simply delete the -dealloc method and the @property will work as expected. Comment on attachment 396887 [details] Patch v1 View in context: https://bugs.webkit.org/attachment.cgi?id=396887&action=review > Source/WebKit/Shared/Cocoa/ProcessTaskStateObserver.mm:49 > + _taskStateChangedCallback = nil; Seems unnecessary to set things to nil in dealloc. Created attachment 396935 [details]
Patch for landing
Committed r260348: <https://trac.webkit.org/changeset/260348> All reviewed patches have been landed. Closing bug and clearing flags on attachment 396935 [details]. |