aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/FontHostStreamTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FontHostStreamTest.cpp')
-rw-r--r--tests/FontHostStreamTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/FontHostStreamTest.cpp b/tests/FontHostStreamTest.cpp
index eb301e3535..bbf1a03ef3 100644
--- a/tests/FontHostStreamTest.cpp
+++ b/tests/FontHostStreamTest.cpp
@@ -94,7 +94,7 @@ static void test_fontHostStream(skiatest::Reporter* reporter) {
const SkFontID typefaceID = SkTypeface::UniqueID(origTypeface);
SkStream* fontData = SkFontHost::OpenStream(typefaceID);
SkTypeface* streamTypeface = SkTypeface::CreateFromStream(fontData);
- paint.setTypeface(streamTypeface)->unref();
+ SkSafeUnref(paint.setTypeface(streamTypeface));
drawBG(&streamCanvas);
streamCanvas.drawPosText("A", 1, &point, paint);