Restore missing deallocation of GenericSchemaValidator::nullHandler_

This commit is contained in:
Milo Yip 2016-10-18 10:14:00 +08:00
parent b963eb447b
commit ddbd2ef05d

View File

@ -1623,6 +1623,10 @@ public:
//! Destructor. //! Destructor.
~GenericSchemaValidator() { ~GenericSchemaValidator() {
Reset(); Reset();
if (nullHandler_) {
nullHandler_->~OutputHandler();
StateAllocator::Free(nullHandler_);
}
RAPIDJSON_DELETE(ownStateAllocator_); RAPIDJSON_DELETE(ownStateAllocator_);
} }