Tencent / MLeaksFinder

Find memory leaks in your iOS app at develop time.
Other
5.42k stars 934 forks source link

viewController not dealloc #78

Open sgsungeng opened 6 years ago

sgsungeng commented 6 years ago

When I use this library. I find one VC is pulled by FBRetainCycleDetector when it dismiss in DebugMemoryGraph

Zepo commented 6 years ago

没看懂问题

sgsungeng commented 6 years ago

有一个vc在被推出视图后没有调用deinit方法,我用DebugMemoryGraph查看了一下 这个控制器被VM:FBRetainCycleDetector _DATA给引用了,界面没有报泄漏,但是也没有释放

af7b8ba1b5fd02aab4ffbf8d2a40fd0a

Zepo commented 6 years ago

能否给个 demo 代码看看

sgsungeng commented 6 years ago

我写demo的时候没有出现这种情况,我在调试我的项目的时候,发现这个VC变成了僵尸对象: d3ed64e0-2a52-4c43-9702-b31329efb701

sgsungeng commented 6 years ago

哪个僵尸对象是因为混编的原因,我把appdelegate改成swift后就没有了