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

Python bindings: Invalidate layer ref when Dataset closes #9487

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Mar 17, 2024

What does this PR do?

Prevents a crash when using a Layer after its parent Dataset closes. We already handle this for the DataSource - Layer relationship and the Dataset - Band relationship, but Dataset - Layer was missed.

What are related issues/pull requests?

#7965

Tasklist

  • Review
  • Adjust for comments
  • All CI builds and checks have passed

@rouault rouault added this to the 3.9.0 milestone Mar 17, 2024
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 68.877% (+0.001%) from 68.876%
when pulling 1e64eb5 on dbaston:python-dataset-getlayer-nocrash
into 1f4ead7 on OSGeo:master.

@rouault rouault merged commit 4383d1a into OSGeo:master Mar 17, 2024
32 checks passed
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.

3 participants