Bug 837450 - Leak with getTransformToElement. r=jwatt

This commit is contained in:
Robert Longson 2013-02-03 14:06:55 +00:00
parent 5c2caeadcf
commit 0ce0423e6c
3 changed files with 12 additions and 1 deletions

View File

@ -221,7 +221,7 @@ SVGTransformableElement::GetTransformToElement(SVGGraphicsElement& aElement,
nsCOMPtr<SVGMatrix> tmp = targetScreenCTM->Inverse(rv);
if (rv.Failed()) return nullptr;
nsCOMPtr<SVGMatrix> mat = tmp->Multiply(*ourScreenCTM).get();
nsCOMPtr<SVGMatrix> mat = tmp->Multiply(*ourScreenCTM);
return mat.forget();
}

View File

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg">
<script>
var root = document.documentElement;
root.getTransformToElement(root);
</script>
</svg>

After

Width:  |  Height:  |  Size: 142 B

View File

@ -62,3 +62,4 @@ load 723441-1.html
load 751515-1.svg
load 761507-1.svg
load 831561.html
load 837450-1.svg