Fixed invalid document contents when document parsing fails
git-svn-id: http://pugixml.googlecode.com/svn/trunk@282 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
516e4d63ce
commit
efee7df3f4
@ -3063,8 +3063,7 @@ namespace pugi
|
||||
{
|
||||
xml_parse_result res = parse(xmlstr, options);
|
||||
|
||||
if (res) _buffer = xmlstr;
|
||||
else global_deallocate(xmlstr);
|
||||
_buffer = xmlstr;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user