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:
arseny.kapoulkine 2010-04-21 06:48:32 +00:00
parent 516e4d63ce
commit efee7df3f4

View File

@ -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;
}