• Philipp A. Hartmann's avatar
    GenericDocument::Accept: deep-copy strings, if needed · a0e5e68f
    Philipp A. Hartmann authored
    Instead of always just shallowly referencing the potentially allocated
    strings when calling the Handler::String function, request a copy in
    case the string has been allocated from an Allocator before.
    
    This is necessary to avoid double free()s of the string memory,
    especially when using the Handler to create a deep copy of a Value.
    
    The explicit comparison against '0' is done to suppress the warning
    C4800 on MSVC, see pah/rapidjson#5.
    a0e5e68f
Name
Last commit
Last update
bin Loading commit data...
build Loading commit data...
example Loading commit data...
include/rapidjson Loading commit data...
test Loading commit data...
thirdparty Loading commit data...
.gitignore Loading commit data...
license.txt Loading commit data...
readme.txt Loading commit data...