Merge "Release text when finishing StaticLayout.Builder" into mnc-dev

This commit is contained in:
Raph Levien
2015-07-29 19:44:21 +00:00
committed by Android (Google) Code Review

View File

@@ -112,6 +112,10 @@ public class StaticLayout extends Layout {
// release any expensive state
/* package */ void finish() {
nFinishBuilder(mNativePtr);
mText = null;
mPaint = null;
mLeftIndents = null;
mRightIndents = null;
mMeasuredText.finish();
}