Update pugixml.cpp
This commit is contained in:
parent
d3a8b86f17
commit
3ceb703935
@ -2409,7 +2409,7 @@ PUGI__NS_BEGIN
|
|||||||
if (header & header_mask) alloc->deallocate_string(dest);
|
if (header & header_mask) alloc->deallocate_string(dest);
|
||||||
|
|
||||||
// mark the string as not allocated
|
// mark the string as not allocated
|
||||||
dest = source_length == 0 ? NULL : const_cast<String>(source);
|
dest = source_length == 0 ? NULL : const_cast<char_t*>(source);
|
||||||
header &= ~header_mask;
|
header &= ~header_mask;
|
||||||
|
|
||||||
// mark dest as shared to avoid reuse document buffer memory
|
// mark dest as shared to avoid reuse document buffer memory
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user