Bug 837450 - Leak with getTransformToElement. r=jwatt
authorRobert Longson <longsonr@gmail.com>
Sun, 03 Feb 2013 14:06:55 +0000
changeset 130570 94ff3af8d554b45c94adb8aea496683b0b162104
parent 130569 fcaec51a34727e1ac5780421a95593afae018b88
child 130571 4fe38a0ee8c5a3af493e78627228d0c067ac934f
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt
bugs837450
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 837450 - Leak with getTransformToElement. r=jwatt
content/svg/content/src/SVGTransformableElement.cpp
content/svg/content/src/crashtests/837450-1.svg
content/svg/content/src/crashtests/crashtests.list
--- a/content/svg/content/src/SVGTransformableElement.cpp
+++ b/content/svg/content/src/SVGTransformableElement.cpp
@@ -216,15 +216,15 @@ SVGTransformableElement::GetTransformToE
   nsCOMPtr<SVGMatrix> targetScreenCTM = aElement.GetScreenCTM();
   if (!ourScreenCTM || !targetScreenCTM) {
     rv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
     return nullptr;
   }
   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();
 }
 
 } // namespace dom
 } // namespace mozilla
 
new file mode 100644
--- /dev/null
+++ b/content/svg/content/src/crashtests/837450-1.svg
@@ -0,0 +1,10 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+
+<script>
+
+var root = document.documentElement;
+root.getTransformToElement(root);
+
+</script>
+
+</svg>
--- a/content/svg/content/src/crashtests/crashtests.list
+++ b/content/svg/content/src/crashtests/crashtests.list
@@ -57,8 +57,9 @@ load 601406-1.svg
 load 603145-1.svg
 load 613899-1.svg
 load 613899-2.svg
 load zero-size-image.svg
 load 723441-1.html
 load 751515-1.svg
 load 761507-1.svg
 load 831561.html
+load 837450-1.svg