summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-04-21 06:48:32 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-04-21 06:48:32 +0000
commitefee7df3f43c01504b4dd7c86f9ec72bcf318f05 (patch)
tree5a3dd558cc1d8397bf0a47c364e3cb5cf36aec82
parent516e4d63ce373949588a416278129fa285403d4f (diff)
Fixed invalid document contents when document parsing fails
git-svn-id: http://pugixml.googlecode.com/svn/trunk@282 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.cpp3
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;
}