Index: src/sfnt/SkOTUtils.cpp |
diff --git a/src/sfnt/SkOTUtils.cpp b/src/sfnt/SkOTUtils.cpp |
index 683d750bda52a4cbef5c5f98781985cb91ca2fde..cb533ff3f25417a7af9f974cbaf3dece8fdf534e 100644 |
--- a/src/sfnt/SkOTUtils.cpp |
+++ b/src/sfnt/SkOTUtils.cpp |
@@ -174,7 +174,7 @@ SkOTUtils::LocalizedStrings_NameTable::CreateForFamilyNames(const SkTypeface& ty |
return nullptr; |
} |
- return new SkOTUtils::LocalizedStrings_NameTable((SkOTTableName*)nameTableData.detach(), |
+ return new SkOTUtils::LocalizedStrings_NameTable((SkOTTableName*)nameTableData.release(), |
SkOTUtils::LocalizedStrings_NameTable::familyNameTypes, |
SK_ARRAY_COUNT(SkOTUtils::LocalizedStrings_NameTable::familyNameTypes)); |
} |