Commit b254b056 authored by Volker Krause's avatar Volker Krause
Browse files

Destroy nodes before destroying the node factory

For the common case this doesn't matter (as it happens anyway for the
built-in document processors), but the more short-lived external processor
can break that.
parent dde9df25
......@@ -242,7 +242,12 @@ ExtractorEngine::ExtractorEngine()
}
ExtractorEngine::ExtractorEngine(ExtractorEngine &&) noexcept = default;
ExtractorEngine::~ExtractorEngine() = default;
ExtractorEngine::~ExtractorEngine()
{
// ensure we destroy nodes before we destroy the node factory
clear();
}
void ExtractorEngine::clear()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment