Closed Bug 134552 Opened 24 years ago Closed 8 years ago

Memory leak in nsCellMap::ExpandWithRows()

Categories

(Core :: Layout: Tables, defect, P2)

defect

Tracking

()

RESOLVED INCOMPLETE
Future

People

(Reporter: pj, Unassigned)

References

()

Details

(Keywords: memory-leak, Whiteboard: [whitebox])

__builtin_new -:- libstdc++-libc6.1-1.so.2 0x407d81e6 nsCellMap::AppendCell <...> nsCellMap.cpp:1191 libgklayout.so 0x8075dbf3 nsCellMap::ExpandWithRows <...> nsCellMap.cpp:1425 libgklayout.so 0x8075e59d nsCellMap::InsertRows <...> nsCellMap.cpp:1083 libgklayout.so 0x8075d86e nsTableCellMap::InsertRows <...> nsCellMap.cpp:440 libgklayout.so 0x8075bdbb Not catching a return value from AppendCell at nsCellMap.cpp:1425?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: mlk
I went to the URL, it does not show this pattern for 2002-04-09.
WFM on both branch and trunk builds : 2002061408. WIN2K. I am not seeing any kind of assertion or memory leak.
WFM on both branch and trunk builds : 2002061408. WIN2K. I am not seeing any kind of assertion or memory leak.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
This is a memory leak, not an assertion of any kind. Fresh from CVS: CellData * nsTableCellMap::AppendCell(..) { <..> CellData *result; <..> result = ... return result; } From line 1424: if (IS_TABLE_CELL(cFrameType)) { AppendCell(aMap, (nsTableCellFrame *)cFrame, rowX, PR_FALSE, DamageArea); } Why does this *not* leak?
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Priority: -- → P2
Peter, why does it leak? This code is just adding an entry to the cell map if it is a cell. If it is not a cell, it doesn't get added, but it still has a frame.
just for the record: origdata is returned from cellmap::AppendCell if this pointer is not always added to the cellmap then it would be lost
Target Milestone: --- → Future
Whiteboard: [whitebox]
mass reassign to default owner
Assignee: karnaze → table
Status: REOPENED → NEW
QA Contact: amar → madhur
Target Milestone: Future → ---
Target Milestone: --- → Future
It looks like AppendCell does in fact put the data in the cellmap (except in cases that assert and should never be hit....). So I don't think we have a leak here (though we do have some rather unreadable code).
Assignee: layout.tables → nobody
QA Contact: madhur → layout.tables
Can we close this bug as we shouldn't have a leak here?
Status: NEW → RESOLVED
Closed: 24 years ago8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.