Closed Bug 500507 Opened 16 years ago Closed 15 years ago

Early exits in nsTableFrame::PaintBCBorders leak verInfo

Categories

(Core :: Layout: Tables, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: memory-leak, valgrind)

Valgrind reveals that when this assertion fires: ###!!! ASSERTION: CellIterator program error: 'PR_FALSE', file /Users/jruderman/central/layout/tables/nsTableFrame.cpp, line 7101 verInfo is leaked: 6910 BCVerticalSeg* verInfo = new BCVerticalSeg[damageArea.width + 1]; if (!verInfo) ABORT0(); ... 7101 nsIFrame* cell = horSeg.firstCell; if (!cell) ABORT0(); ... 7184 delete [] verInfo;
this code will be hopefully heavily tweaked by bug 452319, I will change there the code to ~BCMapBorderIterator() {delete [] mVerInfo;}
Depends on: 452319
Fixed by bug 452319.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.