aboutsummaryrefslogtreecommitdiffstats
path: root/ddms
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-08-18 16:18:41 -0700
committerSiva Velusamy <vsiva@google.com>2011-08-19 14:22:01 -0700
commit8e9596d4455e0e74ce8d89ccac99cfbd7e8e2e06 (patch)
treea981a36e31534b04af2b27c67eab2a255bf9a530 /ddms
parent600e502ca68ccef90ea320aec737a57148e48e96 (diff)
downloadsdk-8e9596d4455e0e74ce8d89ccac99cfbd7e8e2e06.zip
sdk-8e9596d4455e0e74ce8d89ccac99cfbd7e8e2e06.tar.gz
sdk-8e9596d4455e0e74ce8d89ccac99cfbd7e8e2e06.tar.bz2
Dispose of font properly.
Change-Id: Ic00711ebfe13c9f4674e0570bd3dd28f35127d62
Diffstat (limited to 'ddms')
-rw-r--r--ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatMessageLabelProvider.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatMessageLabelProvider.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatMessageLabelProvider.java
index 8c1754a..5348f1f 100644
--- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatMessageLabelProvider.java
+++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatMessageLabelProvider.java
@@ -178,6 +178,10 @@ public final class LogCatMessageLabelProvider extends LabelProvider
}
public void setFont(Font preferredFont) {
+ if (mLogFont != null) {
+ mLogFont.dispose();
+ }
+
mLogFont = preferredFont;
mFontWidth = getFontWidth();
updateWrapWidth();