Skip to content
New issue

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

第一个弹窗:Memory Leak 第二个弹窗: Object Deallocated #102

Open
IronMan-I opened this issue Aug 2, 2018 · 6 comments
Open

Comments

@IronMan-I
Copy link

2018-08-02 10:55:14.369 TTDemo[765:11296] Memory Leak: (
TTCodeViewController
)
2018-08-02 10:55:14.370 TTDemo[765:11296] Possibly Memory Leak.
In case that TTCodeViewController should not be dealloced, override -willDealloc in TTCodeViewController by returning NO.
View-ViewController stack: (
TTCodeViewController
)

第一个弹窗:Memory Leak {TTCodeViewController}

2018-08-02 10:56:13.062 TTDemo[765:11296] [TTCodeViewController.m 206] -[TTCodeViewController dealloc]
2018-08-02 10:56:13.067 TTDemo[765:11296] [TTCodeView.m 123] -[TTCodeView dealloc]
2018-08-02 10:56:13.087 TTDemo[765:11296] Object Deallocated: (
TTCodeViewController
)

大概等了一分钟:

第二个弹窗: Object Deallocated {TTCodeViewController}

@IronMan-I
Copy link
Author

求解释一下

@freezy7
Copy link

freezy7 commented Sep 29, 2018

这说明对象没有循环引用,得到了释放

@fndppx
Copy link

fndppx commented Sep 30, 2018

是的,他们用的是Facebook的库检测的

@liunianhuaguoyanxi
Copy link

相当于后面释放了,但是没有同步提示

@lijianfeigeek
Copy link

释放了,有时间差

@HuangBaoqin1024
Copy link

延迟释放,我遇到的是被单例: [NSMapTable weakToStrongObjectsMapTable] 引用了,作为 value 会释放,但是不会立刻释放。

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

No branches or pull requests

6 participants