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

SpatialReference destroy: Guard against ref count #12

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

shawnlaffan
Copy link
Collaborator

Otherwise we can get double frees if objects are shared.

Not sure if this will lead to memory leaks, but it avoids test failures in Biodiverse. Let me know if there are better approaches.

I also had a look at implementing the GetReferenceCount method for SpatialReference objects, but am not sure what the naming convention should be given it is not in any of the already processed header files.

Otherwise we can get double frees if objects are shared.
@ajolma ajolma merged commit 784a3f4 into ajolma:master Nov 26, 2018
@shawnlaffan shawnlaffan deleted the sr_destroy_method branch November 26, 2018 08:39
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.

None yet

2 participants