Fix GridMap memory leak
This commit is contained in:
parent
650e218b96
commit
5d4a141c97
|
@ -813,6 +813,7 @@ void GridMap::_update_octants_callback() {
|
|||
}
|
||||
|
||||
while (to_delete.front()) {
|
||||
memdelete(octant_map[to_delete.front()->get()]);
|
||||
octant_map.erase(to_delete.front()->get());
|
||||
to_delete.pop_front();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue