ethz-asl / grid_map_geo

Geolocalization for grid map using GDAL.
BSD 3-Clause "New" or "Revised" License
141 stars 19 forks source link

Use GDALDatasetUniquePtr over raw pointer #44

Closed Ryanf55 closed 9 months ago

Ryanf55 commented 9 months ago

Purpose

GDAL datasets can be managed through smart pointers. The original raw pointer was never deleted and was a memory leak.

This is in line with the raster tutorial (that I updated to use the smart pointers). https://gdal.org/tutorials/raster_api_tut.html

Risk

None