mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-04 09:07:47 +08:00
Reloading fixed dictionary when clearing memory
This commit is contained in:
@@ -586,6 +586,12 @@ void VWDictionary::clear(bool printWarningsIfNotEmpty)
|
||||
_unusedWords.clear();
|
||||
_flannIndex->release();
|
||||
useDistanceL1_ = false;
|
||||
|
||||
if(!_incrementalDictionary)
|
||||
{
|
||||
// reload the fixed dictionary
|
||||
this->setFixedDictionary(_dictionaryPath);
|
||||
}
|
||||
}
|
||||
|
||||
int VWDictionary::getNextId()
|
||||
|
||||
Reference in New Issue
Block a user