Closed
Bug 399195
Opened 18 years ago
Closed 18 years ago
Shutdown leaks when a11y active
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: aaronlev, Assigned: aaronlev)
References
Details
(Keywords: access, memory-leak)
Attachments
(2 files, 1 obsolete file)
|
1.50 KB,
text/plain
|
Details | |
|
4.81 KB,
patch
|
surkov
:
review+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
Steps:
1. set XPCOM_MEM_LEAK_LOG=leak.log
2. Run MSAA Inspect or Accexplore.exe
3. Run firefox about:blank
4. If using accexplore, grab the accessible tree of Firefox
5. Quit inspect/accexplore
6. Quit Firefox
Results:
Accessible object leaks shown in leak log
| Assignee | ||
Comment 1•18 years ago
|
||
Attachment #284209 -
Flags: review?(ginn.chen)
| Assignee | ||
Comment 2•18 years ago
|
||
| Assignee | ||
Comment 3•18 years ago
|
||
Comment on attachment 284210 [details]
More leaks that occur when Inspect running and you tab around a page -- will probably file separate bug for this
Actually, this is a bug in my test tool. When using a non-modified version of Inspect there is no issue.
Attachment #284210 -
Attachment is obsolete: true
Comment 4•18 years ago
|
||
Comment on attachment 284209 [details] [diff] [review]
Fixes 3 leaks
>Index: accessible/src/base/nsAccessNode.cpp
>===================================================================
>RCS file: /cvsroot/mozilla/accessible/src/base/nsAccessNode.cpp,v
>retrieving revision 1.66
>diff -p -u -5 -r1.66 nsAccessNode.cpp
>--- accessible/src/base/nsAccessNode.cpp 2 Oct 2007 00:57:23 -0000 1.66
>+++ accessible/src/base/nsAccessNode.cpp 9 Oct 2007 21:06:37 -0000
>@@ -223,20 +223,21 @@ nsAccessNode::GetApplicationAccessible()
>
> gApplicationAccessible = new nsApplicationAccessibleWrap();
> if (!gApplicationAccessible)
> return nsnull;
>
>+ // Addref on create. Will Release in ShutdownXPAccessibility()
> NS_ADDREF(gApplicationAccessible);
>
> nsresult rv = gApplicationAccessible->Init();
> if (NS_FAILED(rv)) {
> NS_RELEASE(gApplicationAccessible);
You should add gApplicationAccessible = nsnull otherwise we will try to release it later. Rigth?
| Assignee | ||
Comment 5•18 years ago
|
||
Surkov, that's no problem. How about r+ with that change?
Comment 6•18 years ago
|
||
Comment on attachment 284209 [details] [diff] [review]
Fixes 3 leaks
sure
Attachment #284209 -
Flags: review?(ginn.chen)
Attachment #284209 -
Flags: review+
Attachment #284209 -
Flags: approval1.9?
| Assignee | ||
Updated•18 years ago
|
Attachment #284209 -
Flags: approval1.9?
| Assignee | ||
Comment 7•18 years ago
|
||
Comment on attachment 284209 [details] [diff] [review]
Fixes 3 leaks
Surkov, I haven't figured out how to get an email notification for a+ when you requested a? for me.
Attachment #284209 -
Flags: approval1.9?
Comment 8•18 years ago
|
||
(In reply to comment #7)
> (From update of attachment 284209 [details] [diff] [review])
> Surkov, I haven't figured out how to get an email notification for a+ when you
> requested a? for me.
>
Ask me to notify you when I get a notification :) dunno.
Updated•18 years ago
|
Attachment #284209 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•