Closed Bug 408883 Opened 17 years ago Closed 17 years ago

[FIX]Leak BandRect with -moz-column, float

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: memory-leak, testcase)

Attachments

(2 files)

Loading the testcase makes Firefox leak a BandRect and nsVoidArray, as shown by trace-refcnt shutdown stats.
Attached file testcase (deleted) —
Assignee: nobody → roc
Flags: blocking1.9?
Attached patch Proposed fix (deleted) — Splinter Review
If we weren't planning on removing all this code as soon as we can, I'd change all this to do spiffy nsAutoPtr-ness that would be leak-immune. But I think this will do for now.
Assignee: roc → bzbarsky
Status: NEW → ASSIGNED
Attachment #293804 - Flags: superreview?(roc)
Attachment #293804 - Flags: review?(roc)
Summary: Leak BandRect with -moz-column, float → [FIX]Leak BandRect with -moz-column, float
Target Milestone: --- → mozilla1.9 M11
Attachment #293804 - Flags: superreview?(roc)
Attachment #293804 - Flags: superreview+
Attachment #293804 - Flags: review?(roc)
Attachment #293804 - Flags: review+
Comment on attachment 293804 [details] [diff] [review] Proposed fix Simple leak fix.
Attachment #293804 - Flags: approval1.9?
Fixed. Can we just stick the test into crashtest to detect leaks? Or something else?
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: blocking1.9? → in-testsuite?
Resolution: --- → FIXED
That should work; I'd leave the flag at ? until we're actually running crashtests with leaks being fatal, tho, and then we can flip it once the test is running and testing what it's supposed to test.
Crashtest checked in. Lack of leak testing on Tinderbox is tracked by bug 397724, not by leaving dozens of bugs in an ambiguous "in-testsuite?" state.
Flags: in-testsuite? → in-testsuite+
Though in theory the existing reftest already covered this... We should be checking those for leaks too eventually.
Which existing reftest?
Not sure which exact one, but running the reftest suite shows 5 (iirc) BandRects (and their contained nsVoidArrays) leaked.
No longer blocks: mlkTests
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: