Closed GoogleCodeExporter closed 9 years ago
I forgot to say that you may need to release the service to have the leak.
Regards
Original comment by romain.p...@gmail.com
on 16 Aug 2009 at 2:39
I suspect you're seeing lazy allocation of the static local variable
filterChars in
stringWithControlsFilteredForString:, not a leak. That allocation happens the
first
time setUserAgent: is called, but will not happen again no matter how many times
setUserAgent: is called.
Original comment by gregrobbins
on 16 Aug 2009 at 4:00
Yes you must be right.
but then why does instruments detects it as a leak?
If I understand well, if I instanciate another service, and set the userAgent,
then
release my service, the first "leak" won't show up again?
Thank you for your answer,
Regards
Original comment by romain.p...@gmail.com
on 16 Aug 2009 at 4:10
Right, it's not a leak unless it shows up repeatedly. I do not know what
algorithm
Instruments is using. Please let us know if you think there remains an issue.
Original comment by gregrobbins
on 18 Aug 2009 at 10:56
Original issue reported on code.google.com by
romain.p...@gmail.com
on 16 Aug 2009 at 2:38