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

Possible memory leak in MCAudioQueueInput #4

Open
fash97 opened this issue Sep 18, 2018 · 0 comments
Open

Possible memory leak in MCAudioQueueInput #4

fash97 opened this issue Sep 18, 2018 · 0 comments

Comments

@fash97
Copy link

fash97 commented Sep 18, 2018

In the callback function, because the function is called on the internal thread of AudioQueue, which is a NSThread, the use of subRangeOfData is dangerous and will cause the memory leak. By default, NSThread has no autoreleasepool and we need to manually add it.

I recommend adding an autoreleasepool to avoid the possible memory leak.

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

1 participant