Project

Profile

Help

Bug #6195

closed

Sources node objects not deleted in the C++ Schema validation samples

Added by O'Neil Delpratt 8 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Category:
Samples
Start date:
2023-09-14
Due date:
% Done:

100%

Estimated time:
Found in version:
12.3
Fixed in version:
12.4
Platforms:

Description

Reported by user in the forum post https://saxonica.plan.io/boards/4/topics/9525

Some of the C++ Schema Validation samples in testValidator.cpp we are not deleting the created source node objects at the end of the test run. if not deleted causes memory leak because it is the responsibility of the user to delete it and not the SchemaValidator class.

The documentation for the SchemaValidator.setSourceNode() needs updating to make it clear the user needs to delete the source node object.

Please register to edit this issue

Also available in: Atom PDF