diff --git a/DataStructures/NNGrid.h b/DataStructures/NNGrid.h index 05e6e7e19..d48c4ded9 100644 --- a/DataStructures/NNGrid.h +++ b/DataStructures/NNGrid.h @@ -517,6 +517,7 @@ private: assert(cellMap->find(fileIndex) != cellMap->end()); if(cellIndex[cellMap->find(fileIndex)->second] == UINT_MAX) { + delete cellMap; return; } unsigned position = cellIndex[cellMap->find(fileIndex)->second] + 32*32*sizeof(unsigned) ;