diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-02-08 00:27:01 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-02-08 00:27:01 +0800 |
commit | 5d4a141c978dbac6cd89cf3afc6f75f0e5ac431e (patch) | |
tree | 27dd0f409ff0c60e146b51adfcfd5c636541a9f9 /modules | |
parent | 650e218b9606e4640ac10ecbff1b7f08b6be0daf (diff) |
Fix GridMap memory leak
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gridmap/grid_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index 67deedf839..6df7835855 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -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(); } |