Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 1df96c80c89aab254c25d5775bff38226bc6853d..e4362c5a36a3598fdcef9c231fb13d291057506d 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -935,7 +935,7 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev |
fMouseX = fMouseY = 0; |
fFatBitsScale = 8; |
- fTypeface = SkTypeface::CreateFromTypeface(nullptr, SkTypeface::kBold); |
+ fTypeface = SkTypeface::MakeFromTypeface(nullptr, SkTypeface::kBold); |
fShowZoomer = false; |
fZoomLevel = 0; |
@@ -1061,7 +1061,6 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev |
} |
SampleWindow::~SampleWindow() { |
- SkSafeUnref(fTypeface); |
SkSafeUnref(fDevManager); |
} |