Commit d6c8b378 authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #777 from miloyip/issue728_threadsafe

Fix nullHandler allocation bug
parents fba9ebd9 992b7f5f
......@@ -1928,7 +1928,7 @@ private:
const Context& CurrentContext() const { return *schemaStack_.template Top<Context>(); }
OutputHandler& CreateNullHandler() {
return *(nullHandler_ = static_cast<OutputHandler*>(stateAllocator_->Malloc(sizeof(OutputHandler))));
return *(nullHandler_ = static_cast<OutputHandler*>(GetStateAllocator().Malloc(sizeof(OutputHandler))));
}
static const size_t kDefaultSchemaStackCapacity = 1024;
......
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