views:

35

answers:

0

My app uses a lot of substringWithRange method, almost all over the place. Reading messages from the server (socket), and separating the string to, populate data on the screen. I get random leaks on [NSCFString substringWithRange:], about 128 bytes leak after running the app for 40 minutes. How can a substringToInsex, or substringFromIndex leak when they don't retain any object? Every leak caused by substringWithRange is exactly 32 bytes I am running the leaks instrument on my device. Thanks