From 29411fc96248c9b78bacb0f1ece33c76ef4d9e4e Mon Sep 17 00:00:00 2001 From: "minkee.lee" Date: Thu, 23 Oct 2014 13:33:04 +0900 Subject: [PATCH] Refactoring: Fix unnecessary variable declaration, resource release. Change-Id: If5cc19e14d86c0762593503b27a34d836581a405 Signed-off-by: minkee.lee --- .../manager/ui/detail/item/template/TextSubViewItem.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/TextSubViewItem.java b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/TextSubViewItem.java index 31eaa13..bd59e69 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/TextSubViewItem.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/item/template/TextSubViewItem.java @@ -59,7 +59,6 @@ public class TextSubViewItem extends SubViewItem { // for modify view protected Text text; protected Image INPUTBOX_ON_IMAGE = null; - protected Image INPUTBOX_OFF_IMAGE = null; public TextSubViewItem(LabelViewItem parentItem, Composite comp, Item template) { @@ -154,4 +153,13 @@ public class TextSubViewItem extends SubViewItem { return false; } + @Override + public void closeItem() { + super.closeItem(); + + if (INPUTBOX_ON_IMAGE != null) { + INPUTBOX_ON_IMAGE.dispose(); + } + } + } -- 2.7.4