Closed Bug 673806 Opened 13 years ago Closed 13 years ago

test_SVGLengthList-2.xhtml leaks when parentnode is strong (bug 335998)

Categories

(Core :: SVG, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: smaug, Assigned: smaug)

References

Details

(Keywords: regression)

Attachments

(2 files, 1 obsolete file)

This is a regression, but I don't know whether the problem is in
SVG code or elsewhere.
Attached file testcase (obsolete) —
Attached patch testcaseSplinter Review
Attachment #548039 - Attachment is obsolete: true
What are the steps to reproduce this leak? Should one use any specific debug tool or extension to detect it?
Apply the patch for bug bug 335998 and open the testcase.
(In reply to comment #0)
> This is a regression, but I don't know whether the problem is in
> SVG code or elsewhere.

Any idea how recently this regressed, smaug?

If it was recent-ish, I wonder if it may be related to the checkin from bug 669584 - that's the only SVG-length-list change that I remember going by in very-recent history.
bug 669584 didn't affect to this.

I don't know yet the regression range.

Whatever attributeName does, it somehow causes the leak.
Attached patch patchSplinter Review
Hmm, why wasn't this leaking before :/
Anyway, animation controller isn't cycle collectable object, so its
unlink must be called explicitly.

http://hg.mozilla.org/mozilla-central/rev/ed15cc897a16 doesn't seem to call unlink ever, so I guess it has never been called.
Assignee: nobody → Olli.Pettay
Attachment #548132 - Flags: review?(dholbert)
Comment on attachment 548132 [details] [diff] [review]
patch

(In reply to comment #7)
> http://hg.mozilla.org/mozilla-central/rev/ed15cc897a16 doesn't seem to call
> unlink ever, so I guess it has never been called.

You're right, though that's not the right cset to be looking at. :)  nsSMILAnimationController wasn't refcounted at that point -- it only became refcounted when we started using the refresh driver, in http://hg.mozilla.org/mozilla-central/rev/c6e4f04278cd (and *that* cset has no unlink calls, as you'd suspected).

Thanks for catching this!
Attachment #548132 - Flags: review?(dholbert) → review+
http://hg.mozilla.org/mozilla-central/rev/504a1a927d39
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: