We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cecil/Mono.Cecil/ModuleDefinition.cs
Lines 387 to 393 in 8e1ae7b
It seems like this sequence of events might be possible, resulting in creation of an DefaultAssemblyResolver instance that's never disposed:
assembly_resolver.value == null
lock
assembly_resolver
The instance in step 3 is now lost and was never disposed.
The text was updated successfully, but these errors were encountered:
I agree, using if/lock/if would be appropriate as it's a standard pattern, or just changing = to ??= in this case.
if
=
??=
Sorry, something went wrong.
No branches or pull requests
cecil/Mono.Cecil/ModuleDefinition.cs
Lines 387 to 393 in 8e1ae7b
It seems like this sequence of events might be possible, resulting in creation of an DefaultAssemblyResolver instance that's never disposed:
assembly_resolver.value == null
assembly_resolver.value == null
lock
block and setsassembly_resolver
to a new instancelock
block and re-setsassembly_resolver
to a new instanceThe instance in step 3 is now lost and was never disposed.
The text was updated successfully, but these errors were encountered: