Open
Bug 463640
Opened 17 years ago
Updated 3 years ago
Potential crash in nsTreeRows::Subtree::~Subtree()
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
NEW
People
(Reporter: MatsPalmgren_bugz, Unassigned)
Details
I suspect this would blow the stack when deleting deep trees...
http://mxr.mozilla.org/mozilla-central/source/content/xul/templates/src/nsTreeRows.cpp?mark=248,255#246
246 nsTreeRows::Subtree::~Subtree()
247 {
248 Clear();
249 }
250
251 void
252 nsTreeRows::Subtree::Clear()
253 {
254 for (PRInt32 i = mCount - 1; i >= 0; --i)
255 delete mRows[i].mSubtree;
256
Reporter | ||
Updated•17 years ago
|
Assignee: jag → nobody
Comment 1•13 years ago
|
||
Mats, code now reads...
218 void
219 nsTreeRows::Subtree::Clear()
220 {
221 for (int32_t i = mCount - 1; i >= 0; --i)
222 delete mRows[i].mSubtree;
No crashes found on crash-stats.
nsXULTreeBuilder::RemoveMatchesFor(nsTreeRows::Subtree&)
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•