Properly delete all GUIObjects and pages on theme reload

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I8df41877f8f4439a434becfd47a9914b50649b34
This commit is contained in:
Vojtech Bocek
2014-02-08 00:32:31 +01:00
parent ede51c528e
commit bfb6334ca8
4 changed files with 31 additions and 7 deletions
-3
View File
@@ -304,10 +304,7 @@ GUIKeyboard::GUIKeyboard(xml_node<>* node)
GUIKeyboard::~GUIKeyboard()
{
int layoutindex;
for (layoutindex=0; layoutindex<MAX_KEYBOARD_LAYOUTS; layoutindex++)
if (keyboardImg[layoutindex]) delete keyboardImg[layoutindex];
}
int GUIKeyboard::Render(void)