Closed Bug 330857 Opened 18 years ago Closed 18 years ago

Memory leak when accessing E4X object

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 330169

People

(Reporter: bugzilla1, Unassigned)

References

()

Details

Simple stuff like

var xml = <foo><bar>foobar1</bar><bar>foobar2</bar></foo>;
var foobar = xml.foo.bar[0];

causes a memory leak. Every time |xml| is referenced, memory leaks. My XULapp which makes heavy use of E4X currently leaks 1.5Gb RAM in 4 minutes due to this.

Testcase coming up.
http://www.dougweb.org/bugzilla/330857.html (testcase with large XML source so the leak is easy to see)

http://www.dougweb.org/bugzilla/330857.zip (zipped version of above)
Do you see the leak with the latest CVS/nighty builds? This can be the same issue as one from bug 330169 fixed on 2006-03-15.
(In reply to comment #2)
> Do you see the leak with the latest CVS/nighty builds? This can be the same
> issue as one from bug 330169 fixed on 2006-03-15.
> 

latest-trunk appears to have this fixed (my last trunk testing had been with 2006-03-14). I'll dupe this.

*** This bug has been marked as a duplicate of 330169 ***
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.