diff options
Diffstat (limited to 'tests/FontNamesTest.cpp')
-rw-r--r-- | tests/FontNamesTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp index 210a7cf310..ee0a1169f3 100644 --- a/tests/FontNamesTest.cpp +++ b/tests/FontNamesTest.cpp @@ -164,8 +164,7 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { printf("[%s]\n", familyName.c_str()); } - SkAutoTUnref<SkTypeface::LocalizedStrings> familyNamesIter( - typeface->createFamilyNameIterator()); + SkAutoTDelete<SkTypeface::LocalizedStrings> familyNamesIter(typeface->getFamilyNames()); SkTypeface::LocalizedString familyNameLocalized; while (familyNamesIter->next(&familyNameLocalized)) { if (verbose) { |