Fix GridMap memory leak

(cherry picked from commit 5d4a141c97)
This commit is contained in:
Haoyu Qiu 2022-02-08 00:27:01 +08:00 committed by Rémi Verschelde
parent 66de60553e
commit 4ad179b75d
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -791,6 +791,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();
}