fixed a bug in xml::ElementParseCreater::Start/End
This commit is contained in:
parent
505560d95e
commit
b88c66e1cb
@ -14,7 +14,17 @@ namespace hgl
|
||||
ElementCreater *ec=cur_ec->GetSubElementCreater(element_name);
|
||||
|
||||
ecs_stack.Push(cur_ec);
|
||||
|
||||
cur_ec=nullptr;
|
||||
|
||||
if(ec)
|
||||
{
|
||||
if(ec->Start())
|
||||
cur_ec=ec;
|
||||
else
|
||||
delete ec;
|
||||
}
|
||||
|
||||
return(cur_ec);
|
||||
}
|
||||
|
||||
@ -33,9 +43,13 @@ namespace hgl
|
||||
}
|
||||
|
||||
void ElementParseCreater::End(const char *element_name)
|
||||
{
|
||||
if(cur_ec)
|
||||
{
|
||||
cur_ec->End();
|
||||
cur_ec=nullptr;
|
||||
}
|
||||
|
||||
ecs_stack.Pop(cur_ec);
|
||||
}
|
||||
}//namespace xml
|
||||
|
Loading…
x
Reference in New Issue
Block a user