diff options
| author | Svet Ganov <svetoslavganov@google.com> | 2015-01-16 10:10:15 -0800 |
|---|---|---|
| committer | Svetoslav Ganov <svetoslavganov@google.com> | 2015-01-16 18:14:36 +0000 |
| commit | 893d6fe48d37f71e683f722457bea646994a10bf (patch) | |
| tree | 540ae4e513a52a5732fb4cf118c751bc850c318e /core/java/android | |
| parent | 8a7f20f5a4d83580470133a9a325a66edbb7363e (diff) | |
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
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/text/TextLine.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/text/TextLine.java b/core/java/android/text/TextLine.java index c19cf32c45d4..4725581a4021 100644 --- a/core/java/android/text/TextLine.java +++ b/core/java/android/text/TextLine.java @@ -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(); |
