Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GDALDatasetUniquePtr over raw pointer #44

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

Ryanf55
Copy link
Collaborator

@Ryanf55 Ryanf55 commented Jan 17, 2024

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

* The raw pointer was never deleted and was a memory leak

Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! LGTM!

@Jaeyoung-Lim Jaeyoung-Lim merged commit aaffb5c into ethz-asl:ros2 Jan 17, 2024
2 checks passed
@Ryanf55 Ryanf55 deleted the use-gdal-dataset-unique-ptr branch January 17, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants