Closed
Bug 896506
Opened 12 years ago
Closed 12 years ago
GC: Fix a couple of rooting hazards in XUL code
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(1 file)
2.18 KB,
patch
|
smaug
:
review+
|
Details | Diff | Splinter Review |
This fixes a couple of reported rooting hazards in XUL code.
Is the change to nsXULPDGlobalObject_finalize() safe? I couldn't see a reason why not to do this (and it doesn't seem to break anything).
Attachment #779218 -
Flags: review?(bugs)
Comment 1•12 years ago
|
||
Comment on attachment 779218 [details] [diff] [review]
Proposed change
nsXULPDGlobalObject *nativeThis ->
nsXULPDGlobalObject* nativeThis
(I know the old! code uses wrong style.
The code is from 1.25 <jst@netscape.com> 2001-05-08 09:46)
So this is not really fixing any issues, but changes the code so that
tools don't complain about rooting hazard, right?
Attachment #779218 -
Flags: review?(bugs) → review+
Assignee | ||
Comment 2•12 years ago
|
||
(In reply to Olli Pettay [:smaug] from comment #1)
Yes this is really about silencing warnings so we can get down to zero (or very few) hazards, so that it becomes much more obvious when any real hazards are introduced.
I'll have a look into why the tool thought that the query interface call in the finalizer could cause a GC, I don't think that's possible.
Assignee | ||
Comment 3•12 years ago
|
||
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•