mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Bug 837450 - Leak with getTransformToElement. r=jwatt
This commit is contained in:
parent
5c2caeadcf
commit
0ce0423e6c
@ -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();
|
||||
}
|
||||
|
||||
|
10
content/svg/content/src/crashtests/837450-1.svg
Normal file
10
content/svg/content/src/crashtests/837450-1.svg
Normal 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 |
@ -62,3 +62,4 @@ load 723441-1.html
|
||||
load 751515-1.svg
|
||||
load 761507-1.svg
|
||||
load 831561.html
|
||||
load 837450-1.svg
|
||||
|
Loading…
Reference in New Issue
Block a user