Closed Bug 1685230 Opened 5 years ago Closed 5 years ago

No autorelease pool during XRE_mainInit and XRE_mainStartup

Categories

(Core :: Widget: Cocoa, defect)

defect

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: mstange, Assigned: mstange)

References

Details

Attachments

(2 files)

XRE_mainInit calls DisableAppNap which creates autoreleased objects, and currently \ those objects are leaked because no autorelease pool is in place.

Summary: No autorelease pool during XRE_mainInit → No autorelease pool during XRE_mainInit and XRE_mainStartup

For example, NS_CreateNativeAppSupport creates autoreleased objects.

Depends on D100851

Attachment #9195540 - Attachment description: Bug 1685230 - Add an autorelease pool in XRE_mainInit for DisableAppNap and for anything that happens in the rest of the funciton. r=jrmuizel → Bug 1685230 - Add an autorelease pool in XRE_mainInit for DisableAppNap and for anything that happens in the rest of the function. r=jrmuizel
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/12344b444efd Add an autorelease pool in XRE_mainInit for DisableAppNap and for anything that happens in the rest of the function. r=jrmuizel https://hg.mozilla.org/integration/autoland/rev/17243102143b Add an autorelease pool in XRE_mainStartup. r=jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: