diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-05 21:14:02 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-05 21:14:02 +0000 |
commit | 456610717bbabd4f3315d2aea3a99f7e03eeda12 (patch) | |
tree | 88993f016b52902ab48122f7c6de7703f9bb42f0 /src/pdf | |
parent | dbba5a4e979407c87e8d5bb7ef269ef9c39b2f74 (diff) |
Fix refcounting bug for Type1 font usage with more than 255 characters.
R=bungeman@google.com
Author: vandebo@chromium.org
Review URL: https://codereview.chromium.org/103423003
git-svn-id: http://skia.googlecode.com/svn/trunk@12520 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/SkPDFFont.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp index b824506b18..1641a8916c 100644 --- a/src/pdf/SkPDFFont.cpp +++ b/src/pdf/SkPDFFont.cpp @@ -875,9 +875,8 @@ SkPDFFont::SkPDFFont(SkAdvancedTypefaceMetrics* info, SkTypeface* typeface, fTypeface(ref_or_default(typeface)), fFirstGlyphID(1), fLastGlyphID(info ? info->fLastGlyphID : 0), - fFontInfo(info), - fDescriptor(relatedFontDescriptor) { - SkSafeRef(info); + fFontInfo(SkSafeRef(info)), + fDescriptor(SkSafeRef(relatedFontDescriptor)) { if (info == NULL) { fFontType = SkAdvancedTypefaceMetrics::kNotEmbeddable_Font; } else if (info->fMultiMaster) { |