Don't die when there are no fonts available.
https://codereview.appspot.com/7147044/
git-svn-id: http://skia.googlecode.com/svn/trunk@7265 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/FontHostStreamTest.cpp b/tests/FontHostStreamTest.cpp
index eb301e3..bbf1a03 100644
--- a/tests/FontHostStreamTest.cpp
+++ b/tests/FontHostStreamTest.cpp
@@ -94,7 +94,7 @@
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);