ssannandeji / Zenject-2019

Dependency Injection Framework for Unity3D
MIT License
2.53k stars 363 forks source link

[Bug] Object that has Reference to the SceneContext stay in memory after scene unloaded #686

Closed sapiscow closed 3 years ago

sapiscow commented 3 years ago

Hello!

I've found that Zenject somehow is "leaking" in memory. Any instances that has bound to a SceneContext are kept in memory even when the scene has been unloaded. Any help to solve this issue (or find a workaround for it) would be appreciated!

Steps to reproduce:

I've check the solution from here: https://github.com/ssannandeji/Zenject-2019/issues/654. But, it still not solved and the project link is dead, so i can't also compare to mine.

sapiscow commented 3 years ago

Duplicated in https://github.com/modesttree/Zenject/issues/246