From 43e4985abfcb69db8fb39a95794eb34a2f142214 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Wed, 28 Mar 2012 16:05:36 -0700 Subject: Fix bug #6248364 Tamil and Denavagari text crash in Google+ - fix initialization of variables Change-Id: Ibda4e1e6f55f867385eaf9a4c7a754c16815bbf0 --- core/jni/android/graphics/TextLayoutCache.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp index efeba5c21bb5..a7abbfa3b5ec 100644 --- a/core/jni/android/graphics/TextLayoutCache.cpp +++ b/core/jni/android/graphics/TextLayoutCache.cpp @@ -341,6 +341,8 @@ TextLayoutShaper::TextLayoutShaper() : mShaperItemGlyphArraySize(0) { mHebrewBoldTypeface = NULL; mBengaliTypeface = NULL; mThaiTypeface = NULL; + mDevanagariTypeface = NULL; + mTamilTypeface = NULL; mFontRec.klass = &harfbuzzSkiaClass; mFontRec.userData = 0; @@ -383,6 +385,8 @@ TextLayoutShaper::~TextLayoutShaper() { SkSafeUnref(mHebrewBoldTypeface); SkSafeUnref(mBengaliTypeface); SkSafeUnref(mThaiTypeface); + SkSafeUnref(mDevanagariTypeface); + SkSafeUnref(mTamilTypeface); deleteShaperItemGlyphArrays(); } -- cgit v1.2.3-59-g8ed1b