diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-04-21 06:48:32 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-04-21 06:48:32 +0000 |
commit | efee7df3f43c01504b4dd7c86f9ec72bcf318f05 (patch) | |
tree | 5a3dd558cc1d8397bf0a47c364e3cb5cf36aec82 /src | |
parent | 516e4d63ce373949588a416278129fa285403d4f (diff) |
Fixed invalid document contents when document parsing fails
git-svn-id: http://pugixml.googlecode.com/svn/trunk@282 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixml.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index f24653f..1bd6c68 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -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;
}
|