Skip to content

Fix exception when using ALContext after disposing an extension#2596

Open
midare160 wants to merge 4 commits into
dotnet:mainfrom
midare160:bugfix/multiple-disposal
Open

Fix exception when using ALContext after disposing an extension#2596
midare160 wants to merge 4 commits into
dotnet:mainfrom
midare160:bugfix/multiple-disposal

Conversation

@midare160

@midare160 midare160 commented Jun 28, 2026

Copy link
Copy Markdown

Summary of the PR

  • Fixed an error when disposing an extension retrieved via alc.TryGetExtension<T>() and disposing the parent context itself afterwards
  • Moved the disposal of of the Context-Property from NativeAPIContainer to NativeAPI since disposing any extension left the parent context in a broken state

@midare160

Copy link
Copy Markdown
Author

@dotnet-policy-service agree

@midare160 midare160 changed the title Fix exception when calling ALContext.Dispose() multiple times Fix exception when using ALContext after disposing an extension Jun 28, 2026
@midare160 midare160 marked this pull request as ready for review June 28, 2026 20:15
@midare160 midare160 requested a review from a team as a code owner June 28, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant