summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-02-10 20:19:02 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-02-10 20:42:48 +0100
commit1b6199f8edd7fc69663b579c16a992d6486950af (patch)
tree3679c906b11b424cf2d91133986e0381f9d26f65
parentgui: avoid high CPU usage while waiting for input (diff)
downloadandroid_bootable_recovery-1b6199f8edd7fc69663b579c16a992d6486950af.tar
android_bootable_recovery-1b6199f8edd7fc69663b579c16a992d6486950af.tar.gz
android_bootable_recovery-1b6199f8edd7fc69663b579c16a992d6486950af.tar.bz2
android_bootable_recovery-1b6199f8edd7fc69663b579c16a992d6486950af.tar.lz
android_bootable_recovery-1b6199f8edd7fc69663b579c16a992d6486950af.tar.xz
android_bootable_recovery-1b6199f8edd7fc69663b579c16a992d6486950af.tar.zst
android_bootable_recovery-1b6199f8edd7fc69663b579c16a992d6486950af.zip
-rw-r--r--gui/button.cpp1
-rw-r--r--gui/fileselector.cpp2
-rw-r--r--gui/input.cpp2
-rw-r--r--gui/listbox.cpp2
-rw-r--r--gui/partitionlist.cpp2
-rw-r--r--gui/scrolllist.cpp3
6 files changed, 0 insertions, 12 deletions
diff --git a/gui/button.cpp b/gui/button.cpp
index 097bf7189..943d71914 100644
--- a/gui/button.cpp
+++ b/gui/button.cpp
@@ -130,7 +130,6 @@ GUIButton::~GUIButton()
if (mButtonImg) delete mButtonImg;
if (mButtonLabel) delete mButtonLabel;
if (mAction) delete mAction;
- if (mButtonIcon) delete mButtonIcon;
}
int GUIButton::Render(void)
diff --git a/gui/fileselector.cpp b/gui/fileselector.cpp
index c7805c42a..4a26349cd 100644
--- a/gui/fileselector.cpp
+++ b/gui/fileselector.cpp
@@ -141,8 +141,6 @@ GUIFileSelector::GUIFileSelector(xml_node<>* node) : GUIScrollList(node)
GUIFileSelector::~GUIFileSelector()
{
- delete mFileIcon;
- delete mFolderIcon;
}
int GUIFileSelector::Update(void)
diff --git a/gui/input.cpp b/gui/input.cpp
index bb7bdf853..21b1f0b86 100644
--- a/gui/input.cpp
+++ b/gui/input.cpp
@@ -214,8 +214,6 @@ GUIInput::GUIInput(xml_node<>* node)
GUIInput::~GUIInput()
{
if (mInputText) delete mInputText;
- if (mBackground) delete mBackground;
- if (mCursor) delete mCursor;
if (mAction) delete mAction;
}
diff --git a/gui/listbox.cpp b/gui/listbox.cpp
index 545b7a294..89a2c0322 100644
--- a/gui/listbox.cpp
+++ b/gui/listbox.cpp
@@ -103,8 +103,6 @@ GUIListBox::GUIListBox(xml_node<>* node) : GUIScrollList(node)
GUIListBox::~GUIListBox()
{
- delete mIconSelected;
- delete mIconUnselected;
}
int GUIListBox::Update(void)
diff --git a/gui/partitionlist.cpp b/gui/partitionlist.cpp
index 48bd295d6..7e5a74fa5 100644
--- a/gui/partitionlist.cpp
+++ b/gui/partitionlist.cpp
@@ -96,8 +96,6 @@ GUIPartitionList::GUIPartitionList(xml_node<>* node) : GUIScrollList(node)
GUIPartitionList::~GUIPartitionList()
{
- delete mIconSelected;
- delete mIconUnselected;
}
int GUIPartitionList::Update(void)
diff --git a/gui/scrolllist.cpp b/gui/scrolllist.cpp
index 02656c79d..3010d3a71 100644
--- a/gui/scrolllist.cpp
+++ b/gui/scrolllist.cpp
@@ -259,9 +259,6 @@ GUIScrollList::GUIScrollList(xml_node<>* node) : GUIObject(node)
GUIScrollList::~GUIScrollList()
{
- delete mHeaderIcon;
- delete mBackground;
- delete mFont;
}
void GUIScrollList::SetMaxIconSize(int w, int h)