Index: Source/web/tests/GraphicsLayerTest.cpp |
diff --git a/Source/web/tests/GraphicsLayerTest.cpp b/Source/web/tests/GraphicsLayerTest.cpp |
index 3f9d624b01322297c37c3059074a2bbcd0a19728..d755c28e505b8325c1e6fa35005d3f8299d42060 100644 |
--- a/Source/web/tests/GraphicsLayerTest.cpp |
+++ b/Source/web/tests/GraphicsLayerTest.cpp |
@@ -94,7 +94,7 @@ TEST_F(GraphicsLayerTest, updateLayerPreserves3DWithAnimations) |
curve->add(WebFloatKeyframe(0.0, 0.0)); |
OwnPtr<WebAnimation> floatAnimation(adoptPtr(Platform::current()->compositorSupport()->createAnimation(*curve, WebAnimation::TargetPropertyOpacity))); |
int animationId = floatAnimation->id(); |
- ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.get())); |
+ ASSERT_TRUE(m_platformLayer->addAnimation(floatAnimation.leakPtr())); |
ASSERT_TRUE(m_platformLayer->hasActiveAnimation()); |