diff options
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 8825f53e72..37377ae44b 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -973,8 +973,7 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev SampleWindow::~SampleWindow() { delete fPdfCanvas; - fTypeface->unref(); - + SkSafeUnref(fTypeface); SkSafeUnref(fDevManager); } |