fixed crash when opening and closing main menu consecutively

This commit is contained in:
louis 2015-03-14 06:37:11 +01:00
parent d5a91f36dc
commit a021515385
3 changed files with 2 additions and 7 deletions

View File

@ -210,4 +210,5 @@ Version 0.3.0
- checking setup conditions for viewelements
- fixed FadeOut bug
- fixed crash when opening and closing main menu consecutively

View File

@ -965,13 +965,6 @@ bool cXmlParser::ParseAttributes(xmlAttrPtr attr, xmlNodePtr node, vector<pair<s
while (NULL != attr) {
string name = (const char*)attr->name;
/*
if (!name.compare("debug")) {
attribs.push_back(pair<string, string>((const char*)attr->name, "true"));
attr = attr->next;
continue;
}
*/
xmlChar *value = NULL;
value = xmlGetProp(node, attr->name);
if (!view->ValidAttribute(isViewElement ? "viewelement" : (const char*)node->name, (const char*)attr->name)) {

View File

@ -31,6 +31,7 @@ cDisplayMenuRootView::cDisplayMenuRootView(cTemplateView *rootView) : cView(root
}
cDisplayMenuRootView::~cDisplayMenuRootView() {
CancelSave();
if (view) {
delete view;
view = NULL;