Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
5.15.1
-
None
Description
QXmlSchemaValidator::validate() leaks memory.
Example usage:
try { // load the schema doc QFile xsdFile(Validation::MH_XML_SCHEMA); if (xsdFile.exists() && xsdFile.open(QIODevice::ReadOnly | QIODevice::Text)) { // load the schema that we're going to compare xmlDoc against QXmlSchema schema; if (schema.load(&xsdFile)) { QXmlSchemaValidator validator(schema); Validation::MessageHandler msgHandler; // set a custom message handler validator.setMessageHandler(&msgHandler); // do the validation success = validator.validate(xmlDoc.toUtf8()); ...
Approximately 10 KB of Memory is leaked for a single invocation.