Fixed potential memory leak

This commit is contained in:
Dennis Luxen 2010-09-02 15:56:12 +00:00
parent 1ba915cbed
commit f9f4fa2972

View File

@ -517,6 +517,7 @@ private:
assert(cellMap->find(fileIndex) != cellMap->end()); assert(cellMap->find(fileIndex) != cellMap->end());
if(cellIndex[cellMap->find(fileIndex)->second] == UINT_MAX) if(cellIndex[cellMap->find(fileIndex)->second] == UINT_MAX)
{ {
delete cellMap;
return; return;
} }
unsigned position = cellIndex[cellMap->find(fileIndex)->second] + 32*32*sizeof(unsigned) ; unsigned position = cellIndex[cellMap->find(fileIndex)->second] + 32*32*sizeof(unsigned) ;