Closed Bug 1684896 Opened 4 years ago Closed 4 years ago

gAttributeGetters leaks in MacSelectorMap.mm

Categories

(Core :: Disability Access APIs, defect, P2)

Desktop
macOS
defect

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: jrmuizel, Assigned: mstange)

References

Details

(Whiteboard: [mac2020_2])

Attachments

(1 file)

The object is autoreleased without an autorelease pool in place because it runs as a static constructor.

This was found by running with OBJC_DEBUG_MISSING_POOLS=YES LIBDISPATCH_DEBUG_MISSING_POOLS=NO

Whiteboard: [mac2020_2]
Severity: -- → S3
Priority: -- → P2
Assignee: nobody → mstange.moz
Status: NEW → ASSIGNED

This means that the NSDictionaries will be constructed the first time the
wrapper function is called, and not at C++ static initializer time.
This avoids false positive warnings when running with the environment variables
OBJC_DEBUG_MISSING_POOLS=YES LIBDISPATCH_DEBUG_MISSING_POOLS=NO.

Pushed by mstange@themasta.com:
https://hg.mozilla.org/integration/autoland/rev/f0767d452fc4
For the static NSDictionary MacSelectorMap objects, use function-local statics rather than globals. r=morgan
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Component: Disability Access → Disability Access APIs
OS: Unspecified → macOS
Product: Firefox → Core
Hardware: Unspecified → Desktop
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: