Index: tests/SerializationTest.cpp |
diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp |
index eb84b3c957af83e7af05ae9379793d45bb8d9b8e..d6a88cf46587daa006131175103ce2537e31f0b3 100644 |
--- a/tests/SerializationTest.cpp |
+++ b/tests/SerializationTest.cpp |
@@ -372,7 +372,7 @@ static void TestPictureTypefaceSerialization(skiatest::Reporter* reporter) { |
} else { |
SkFixed axis = SK_FixedSqrt2; |
SkAutoTUnref<SkTypeface> typeface(SkTypeface::CreateFromFontData( |
- new SkFontData(distortable.detach(), 0, &axis, 1))); |
+ new SkFontData(distortable.release(), 0, &axis, 1))); |
if (!typeface) { |
INFOF(reporter, "Could not run fontstream test because Distortable.ttf not created."); |
} else { |