Closed
Bug 346878
Opened 19 years ago
Closed 19 years ago
Mac 1.8.1: leaking menu items and toplevel windows due to problems in nsMenuX and nsMacWindow
Categories
(Core Graveyard :: Widget: Mac, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.8.1beta2
People
(Reporter: mark, Assigned: mark)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file)
2.57 KB,
patch
|
jaas
:
review+
darin.moz
:
superreview+
mtschrep
:
approval1.8.1+
|
Details | Diff | Splinter Review |
Assignee | ||
Comment 1•19 years ago
|
||
1.8 branch seems to be leaking for other reasons as well...
Assignee | ||
Comment 2•19 years ago
|
||
Note that this bug was spun off from bug 46177 comment 95.
Summary: Leaking menu items due to a problem in nsMenuX → Mac 1.8.1: leaking menu items and toplevel windows due to a problems in nsMenuX and nsMacWindow
Target Milestone: --- → mozilla1.8.1beta2
Assignee | ||
Comment 3•19 years ago
|
||
There were two leaks, both of them only present on the 1.8 branch:
- The patch to bug 344238 created a leak in nsMacWindow because
nsIWidget::GetParent returns an addrefed object on the 1.8 branch. That
patch was initially developed on the trunk, where bug 227489 made
the same method return a weak pointer, therefore there is no leak on the
trunk.
- Bug 50590 introduced a leak in
nsMenuX::ChangeNativeEnabledStatusForMenuItem. This has already been
corrected on the trunk as part of bug 46177.
Testing with this patch and global object counters, I have verified that all windows and menu items are properly freed by the time the application quits.
Attachment #231776 -
Flags: superreview?(darin)
Attachment #231776 -
Flags: review?(joshmoz)
Assignee | ||
Updated•19 years ago
|
Attachment #231776 -
Flags: review?(joshmoz) → review+
Updated•19 years ago
|
Attachment #231776 -
Flags: superreview?(darin) → superreview+
Assignee | ||
Updated•19 years ago
|
Attachment #231776 -
Flags: approval1.8.1?
Assignee | ||
Updated•19 years ago
|
Summary: Mac 1.8.1: leaking menu items and toplevel windows due to a problems in nsMenuX and nsMacWindow → Mac 1.8.1: leaking menu items and toplevel windows due to problems in nsMenuX and nsMacWindow
Comment 4•19 years ago
|
||
Mark - since we approved 46177 is this still needed?
Assignee | ||
Comment 5•19 years ago
|
||
Yes, 46177 included the second fix from comment 3, but the first fix is still needed on the 1.8 branch.
Comment 6•19 years ago
|
||
Comment on attachment 231776 [details] [diff] [review]
Patch
a=schrep
Attachment #231776 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 7•19 years ago
|
||
Checked in on MOZILLA_1_8_BRANCH before 1.8.1b2.
You need to log in
before you can comment on or make changes to this bug.
Description
•