diff options
author | ylavic <ylavic.dev@gmail.com> | 2019-01-10 20:42:16 +0300 |
---|---|---|
committer | ylavic <ylavic.dev@gmail.com> | 2019-01-10 20:42:16 +0300 |
commit | dbb594bdb397a16cc91df53466a5ea2cfbc8fb91 (patch) | |
tree | 1e4415e57d0cf3a7dc2797ac0219bbdf2e26fca0 /include/rapidjson | |
parent | bfdcf4911047688fec49014d575433e2e5eb05be (diff) |
Use the allocator of the Schema for its Pointer.
The Pointer passed to construct the Schema can be from the stack or any
transient storage, so the copy stored in the Schema must have the same
lifetime/allocator as the Schema itself.
Diffstat (limited to 'include/rapidjson')
-rw-r--r-- | include/rapidjson/schema.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rapidjson/schema.h b/include/rapidjson/schema.h index 57ec797a..5b622f78 100644 --- a/include/rapidjson/schema.h +++ b/include/rapidjson/schema.h @@ -409,7 +409,7 @@ public: Schema(SchemaDocumentType* schemaDocument, const PointerType& p, const ValueType& value, const ValueType& document, AllocatorType* allocator) : allocator_(allocator), uri_(schemaDocument->GetURI(), *allocator), - pointer_(p), + pointer_(p, allocator), typeless_(schemaDocument->GetTypeless()), enum_(), enumCount_(), |