Skip to content

Commit 79a6dab

Browse files
authored
Merge pull request Tencent#1439 from ylavic/schema_pointer_allocator
Use the allocator of the Schema for its Pointer.
2 parents 93cb84a + dbb594b commit 79a6dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/schema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ class Schema {
409409
Schema(SchemaDocumentType* schemaDocument, const PointerType& p, const ValueType& value, const ValueType& document, AllocatorType* allocator) :
410410
allocator_(allocator),
411411
uri_(schemaDocument->GetURI(), *allocator),
412-
pointer_(p),
412+
pointer_(p, allocator),
413413
typeless_(schemaDocument->GetTypeless()),
414414
enum_(),
415415
enumCount_(),

0 commit comments

Comments
 (0)