Closed
Bug 252731
Opened 20 years ago
Closed 20 years ago
Fix memory leaks in accessible/src/atk/nsAccessibleHyperText.cpp
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
People
(Reporter: jwatt, Assigned: jwatt)
Details
(Keywords: fixed-aviary1.0, fixed1.7.5, memory-leak)
Attachments
(2 files, 3 obsolete files)
2.89 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
mkaply
:
approval-aviary+
mkaply
:
approval1.7.5+
|
Details | Diff | Splinter Review |
1.98 KB,
patch
|
Details | Diff | Splinter Review |
Both do_QueryInterface() and ElementAt() call AddRef() - see: http://lxr.mozilla.org/mozilla/source/xpcom/ds/nsSupportsArray.cpp#323
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #154065 -
Flags: superreview?(bzbarsky)
Attachment #154065 -
Flags: review?(bzbarsky)
Comment 2•20 years ago
|
||
fyi, you can use do_QueryElementAt here, and keep the syntactic sugar of do_QI. just s/do_QueryInterface/do_QueryElementAt/ and you're good to go ;) http://lxr.mozilla.org/mozilla/source/xpcom/ds/nsICollection.idl#87
Comment 3•20 years ago
|
||
er, more like this. s/do_QueryInterface(mTextChildren->ElementAt(index))/do_QueryElementAt(mTextChildren, index))/
Assignee | ||
Comment 4•20 years ago
|
||
Interesting, thanks dwitte. I haven't checked that this patch builds okay.
Updated•20 years ago
|
Attachment #154065 -
Flags: superreview?(bzbarsky)
Attachment #154065 -
Flags: review?(bzbarsky)
Comment 5•20 years ago
|
||
Comment on attachment 154074 [details] [diff] [review] patch dwitte's way This is fine in general (and I should have recalled do_QueryElementAt), but please follow the file's style for whitespace around the do_QIAt (that is, no spaces there) and please don't make random whitespace changes...
Attachment #154074 -
Flags: superreview+
Attachment #154074 -
Flags: review+
Assignee | ||
Comment 6•20 years ago
|
||
Patch corrected to follow style of the file. Those whitespace changes aren't random btw, I removed trailing whitespace from the ends of all lines to tidy the file. Unless you really object to that I'd prefer it gets tidied.
Assignee | ||
Comment 7•20 years ago
|
||
I'd rather not just assume that you're happy with the updated patch bz, can you add a quick comment to let me know.
Comment 8•20 years ago
|
||
I realize what the whitespace changes were, but they're random in that they are unrelated to this bug. And yes, I really object to them -- they make CVS blame more confusing for little benefit...
Assignee | ||
Comment 9•20 years ago
|
||
(In reply to comment #8) > I realize what the whitespace changes were, but they're random in that they are > unrelated to this bug. And yes, I really object to them -- they make CVS blame > more confusing for little benefit... I didn't realise that.
Attachment #154065 -
Attachment is obsolete: true
Attachment #154074 -
Attachment is obsolete: true
Attachment #154078 -
Attachment is obsolete: true
Comment 10•20 years ago
|
||
Comment on attachment 154117 [details] [diff] [review] final patch r+sr=bzbarsky. Want me to check this in?
Attachment #154117 -
Flags: superreview+
Attachment #154117 -
Flags: review+
Assignee | ||
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 11•20 years ago
|
||
It is a fixed memory leak bug, could it be considered for 1.7.2 ?
Flags: blocking1.7.2?
Keywords: mlk
Assignee | ||
Comment 12•20 years ago
|
||
Comment on attachment 154117 [details] [diff] [review] final patch Marking for approval, sorry I didn't do this before 1.7.2.
Attachment #154117 -
Flags: approval1.7.3?
Attachment #154117 -
Flags: approval-aviary?
Assignee | ||
Updated•20 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 13•20 years ago
|
||
Approver: I'm away until September, but please still review - bz will check this into the branch if he catches the bugmail.
Comment 14•20 years ago
|
||
Comment on attachment 154117 [details] [diff] [review] final patch a=mkaply for aviary and 1.7.3
Attachment #154117 -
Flags: approval1.7.3?
Attachment #154117 -
Flags: approval1.7.3+
Attachment #154117 -
Flags: approval-aviary?
Attachment #154117 -
Flags: approval-aviary+
Comment 15•20 years ago
|
||
Branch is closed, but this is the patch that should go in once it opens.
Comment 16•20 years ago
|
||
Marking fixed, since it's fixed on trunk.
Status: REOPENED → RESOLVED
Closed: 20 years ago → 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
Updated•20 years ago
|
Keywords: fixed1.7.3
Updated•20 years ago
|
Flags: blocking1.7.3?
You need to log in
before you can comment on or make changes to this bug.
Description
•