Skip to content

fix: don't hold reference to factory to prevent memory leak#296

Open
krystalgamer wants to merge 1 commit intoStephenCleary:masterfrom
krystalgamer:master
Open

fix: don't hold reference to factory to prevent memory leak#296
krystalgamer wants to merge 1 commit intoStephenCleary:masterfrom
krystalgamer:master

Conversation

@krystalgamer
Copy link

AsyncLazy keeps reference to _factory unlike the runtime implementation which disposes of it: https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Lazy.cs,319

Had memory leak issues because the factory field of the class was holding onto many resources.

@timcassell
Copy link

#269

@krystalgamer
Copy link
Author

oh nice, didn't know. any reason why it wasn't merged @timcassell

@timcassell
Copy link

Idk, I'm not the maintainer.

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