Closed Bug 467693 Opened 16 years ago Closed 14 years ago

Leak nsStringBuffer with coincidental property name match

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: memory-leak, testcase)

Attachments

(2 files)

Attached file testcase
The two lines in function boom() seem independent, but together they make Firefox leak an nsStringBuffer.  Maybe it has something to do with nsIWebNavigationInfo (on the second line) having a property called "UNSUPPORTED", which is coincidentally also the tagName of the element on the first line.

The balance tree makes me suspect that xpc quickstubs are acting up.
Attached file balance tree
Does this leak anything else? Or just the string buffer? Could be the JSString leaking.
The nsStringBuffer is the only trace-refcnt-instrumented object that leaks.
Still happens on trunk.
This seems to have been fixed. Doesn't leak for me on trunk on OS X. Jesse, can you confirm?
WFM. Yay!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Crashtest: http://hg.mozilla.org/mozilla-central/rev/688a6b1a5aa3
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: