JasperFx / lamar

Fast Inversion of Control Tool and Successor to StructureMap
https://jasperfx.github.io/lamar
MIT License
571 stars 119 forks source link

clear scope.disposables collection when disposing container to prevent memory leak #273

Closed ylazebnyk closed 3 years ago

ylazebnyk commented 3 years ago

ConcurrentBag is using thread local variables to store it's content. in some cases when the Bag contains elements that have circular references (reference an instance of this Bag) the whole graph of objects stay in memory if the Bag is not cleared before all references are released

jeremydmiller commented 3 years ago

@ylazebnyk Sorry for the delay, this will be in Lamar v5.0.3 shortly.