-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
ASIInputStream leaks on iOS7 compiled by Xcode 5.0 #378
Comments
I check the memory leak in my environment as well. People who are looking how to handle someone do not come? |
The leak is because ASIInputStream is being cast to a CFReadStreamRef but ASIInputStream does not derive from NSInputStream it just wraps it. My Solution is to get rid of ASIInputStream and create a NSInputStream instead in the ASIHTTPRequest startRequest: method. It breaks using the metrics that ASIInputStream records but I wasn't using them. I'm using a fairly old version of ASIHTTPRequest v.1.6.2 so your milage may vary. |
it works! thanks a lot! |
dealloc is not called on iOS7 when a request has postbody. Profile the iphone sample with leaks, click upload tab and upload then you will find ASIInputStream is leaking.
The text was updated successfully, but these errors were encountered: