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

* commit 'c3cc344d12ff4a952af8842fab71ef2f6df5e340':
  Release text when finishing StaticLayout.Builder
This commit is contained in:
Raph Levien
2015-07-29 19:58:30 +00:00
committed by Android Git Automerger

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();
}