Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
<http://webkit.org/b/59755> AXObjectCache::attachWrapper() over-retai…
…ns an AccessibilityObjectWrapper Reviewed by Chris Fleizach. Previously, AXObjectCache::attachWrapper over-retained each AccessibilityObjectWrapper it created, which is why AXObjectCache::detachWrapper() contained an extra -release. * accessibility/mac/AXObjectCacheMac.mm: (WebCore::AXObjectCache::detachWrapper): Removed extra -release. (WebCore::AXObjectCache::attachWrapper): Because setWrapper() assigns to a RetainPtr<> instance variable, it doesn't need a +1 retained object passed in. Fix the leak by using a RetainPtr<> for the AccessibilityObjectWrapper. Canonical link: https://commits.webkit.org/74974@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@85263 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
19 additions
and 2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters