diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-03-28 16:05:36 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2012-03-28 16:05:36 -0700 |
commit | 43e4985abfcb69db8fb39a95794eb34a2f142214 (patch) | |
tree | be7f9bf969456512fcfe46622cdf98ad34090019 /core/jni/android/graphics | |
parent | 31074a5d5d9fbdd5c138d658f26a8e22d9a70094 (diff) | |
download | frameworks_base-43e4985abfcb69db8fb39a95794eb34a2f142214.zip frameworks_base-43e4985abfcb69db8fb39a95794eb34a2f142214.tar.gz frameworks_base-43e4985abfcb69db8fb39a95794eb34a2f142214.tar.bz2 |
Fix bug #6248364 Tamil and Denavagari text crash in Google+
- fix initialization of variables
Change-Id: Ibda4e1e6f55f867385eaf9a4c7a754c16815bbf0
Diffstat (limited to 'core/jni/android/graphics')
-rw-r--r-- | core/jni/android/graphics/TextLayoutCache.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/jni/android/graphics/TextLayoutCache.cpp b/core/jni/android/graphics/TextLayoutCache.cpp index efeba5c..a7abbfa 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(); } |