Closed Bug 952928 Opened 11 years ago Closed 11 years ago

two Cocoa objects (one Dictionary, one Array) leaked during startup

Categories

(Core :: Widget: Cocoa, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch getsystemversion-autorelease (obsolete) — Splinter Review
Observed during launch, since the refactoring of OS X version checks in bug 676907:

objc[12683]: Object 0x1004bc7c0 of class __NSCFDictionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[12683]: Object 0x1004ca7f0 of class __NSArrayM autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug

Patch attached.
Attachment #8351176 - Flags: review?(bgirard)
Oops, that needs an extra #include or else it'll break in non-unified builds. Sorry for the churn.
Attachment #8351177 - Flags: review?(bgirard)
Attachment #8351176 - Attachment is obsolete: true
Attachment #8351176 - Flags: review?(bgirard)
Comment on attachment 8351177 [details] [diff] [review]
Ensure an autorelease pool is in place in InitializeVersionNumbers() before calling Cocoa APIs.

Thanks!
Attachment #8351177 - Flags: review?(bgirard) → review+
https://hg.mozilla.org/mozilla-central/rev/0f5ac5ff7d43
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: