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

mutex应该被destroy #30

Closed
haifenghuang opened this issue Mar 2, 2016 · 1 comment
Closed

mutex应该被destroy #30

haifenghuang opened this issue Mar 2, 2016 · 1 comment

Comments

@haifenghuang
Copy link

在你的应用中,使用了mutex来做为线程锁。在init方法中,你创建了一个mutex,但是没有任何地方释放此mutex,你应该在dealloc或别的适当的地方使用pthread_mutex_destroy(&_lock)来释放这个创建的mutex。

ibireme added a commit that referenced this issue Mar 2, 2016
@ibireme
Copy link
Owner

ibireme commented Mar 2, 2016

Fixed. Thanks~

@ibireme ibireme closed this as completed Mar 2, 2016
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

2 participants