Przeglądaj źródła

Merge pull request #57764 from timothyqiu/octant-delete

Rémi Verschelde 3 lat temu
rodzic
commit
d35269ab21
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      modules/gridmap/grid_map.cpp

+ 1 - 0
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();
 	}