Fixing a memory leak: activities are leaked.

TextLine was not fully cleared before recycling it which leads to
activity leaks if the activity happens: to register a text watcher.

bug:19045507

Change-Id: Ife0f7ce29865bd30ca2dfe8795023f51f275d659
This commit is contained in:
Svet Ganov
2015-01-16 10:10:15 -08:00
committed by Svetoslav Ganov
parent 8a7f20f5a4
commit 893d6fe48d

View File

@@ -100,6 +100,9 @@ class TextLine {
tl.mText = null;
tl.mPaint = null;
tl.mDirections = null;
tl.mSpanned = null;
tl.mTabs = null;
tl.mChars = null;
tl.mMetricAffectingSpanSpanSet.recycle();
tl.mCharacterStyleSpanSet.recycle();