diff options
author | Ben Wagner <bungeman@google.com> | 2014-07-10 16:21:49 -0400 |
---|---|---|
committer | Ben Wagner <bungeman@google.com> | 2014-07-10 16:21:49 -0400 |
commit | b17c764f852c04d84f8fbbc3c82eefb8c7665217 (patch) | |
tree | 96bef583ca2ea90260f81fe8e5590636d9f4c531 /samplecode | |
parent | 3031a2f1df6fa71b9dae8bc87f56182c096e23a2 (diff) |
Handle NULL typeface in SampleApp.
It is possible that SampleApp will use the NULL typeface as the default.
This is valid and should be handled properly on shutdown.
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); } |