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
try PMJSON.JSON.decode leaks #30
Comments
What makes you think this leaks? |
More generally, if you're seeing leaks in your app, and the allocation for the leaks is being traced to PMJSON, almost certain what's happening is you're leaking the resulting |
Hmm, in all PMJSON.JSON.decode calls ?) |
@iDevPro |
That sounds extremely unlikely. Again, what you're showing is just where the memory was allocated, not where it was leaked. |
But this screenshot from Leak items :) I found so many memory leaks in String on iPad Air 2 simulator with iOS 9.3, on iPad Air Simulator with iOS 10 and up there is no memory leaks ;) |
@iDevPro That screenshot is showing where the memory was allocated. That's not the same thing as where it was leaked. In order to figure out what's responsible for the leaking you have to drill into the object's history in the Allocations instrument and pair up the retain/release calls. If you find an unbalanced retain, the missing release is responsible. If you don't find any unbalanced retain/release pairs then the missing release must be the final release, but in this particular case I believe you've identified the All this to say, the |
Hello, I found many memory leaks if I use
try PMJSON.JSON.decode(jsonData)
scalars.append(c)
caused issue in function:private mutating func parseValue(_ c: UnicodeScalar) throws -> JSONEvent
The text was updated successfully, but these errors were encountered: