summaryrefslogtreecommitdiffstats
path: root/chrome/common/gfx/chrome_font_skia.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/gfx/chrome_font_skia.cc')
-rw-r--r--chrome/common/gfx/chrome_font_skia.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/common/gfx/chrome_font_skia.cc b/chrome/common/gfx/chrome_font_skia.cc
index bd83a61..c77b5b9 100644
--- a/chrome/common/gfx/chrome_font_skia.cc
+++ b/chrome/common/gfx/chrome_font_skia.cc
@@ -58,6 +58,7 @@ void ChromeFont::calculateMetrics() {
void ChromeFont::CopyChromeFont(const ChromeFont& other) {
typeface_helper_.reset(new SkAutoUnref(other.typeface_));
typeface_ = other.typeface_;
+ typeface_->ref();
font_name_ = other.font_name_;
font_size_ = other.font_size_;
style_ = other.style_;