autoreleased Cocoa objects leaked during shutdown

RESOLVED FIXED

Status

()

Core
Widget: Cocoa
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: jfkthame, Assigned: jfkthame)

Tracking

(Blocks: 1 bug)

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

8 years ago
Created attachment 438846 [details] [diff] [review]
patch v1 - add local autorelease pools where needed for clean shutdown

During shutdown, Cocoa methods are called after the event loop has finished, so the main autorelease pool is no longer in place. As a result, these methods leak numerous objects (around 300+) that are autoreleased internally by Cocoa.
Attachment #438846 - Flags: review?(joshmoz)
(Assignee)

Comment 1

8 years ago
Created attachment 438847 [details] [diff] [review]
patch v1.1 - add local autorelease pools where needed for clean shutdown

Updated; one of the added pools was redundant. (Sorry for the bugspam!)
Attachment #438846 - Attachment is obsolete: true
Attachment #438847 - Flags: review?(joshmoz)
Attachment #438846 - Flags: review?(joshmoz)

Updated

8 years ago
Attachment #438847 - Flags: review?(joshmoz) → review+
(Assignee)

Comment 2

8 years ago
http://hg.mozilla.org/mozilla-central/rev/a8fd7c7e46ac
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.