mirror of https://gitee.com/bigwinds/arangodb
destructor for IndexRangeBlock, deletes private data
This commit is contained in:
parent
ae5b96bc5d
commit
144ee7a8f0
|
@ -878,10 +878,34 @@ IndexRangeBlock::IndexRangeBlock (ExecutionEngine* engine,
|
|||
}
|
||||
|
||||
IndexRangeBlock::~IndexRangeBlock () {
|
||||
|
||||
if (_collection != nullptr) {
|
||||
delete _collection;
|
||||
_collection = nullptr;
|
||||
}
|
||||
|
||||
// FIXME is it necessary to do anything to the TRI_doc_mptr_copy_t's in
|
||||
// _documents ???
|
||||
_documents.clear();
|
||||
|
||||
for (auto e : _allVariableBoundExpressions) {
|
||||
delete e;
|
||||
}
|
||||
_allVariableBoundExpressions.clear();
|
||||
|
||||
for (auto x : _inVars) {
|
||||
for (auto y : x) {
|
||||
delete y;
|
||||
}
|
||||
x.clear();
|
||||
}
|
||||
_inVars.clear();
|
||||
|
||||
for (auto x : _inRegs) {
|
||||
x.clear();
|
||||
}
|
||||
_inRegs.clear();
|
||||
|
||||
}
|
||||
|
||||
int IndexRangeBlock::initialize () {
|
||||
|
|
Loading…
Reference in New Issue