Does scanCharactersFromSet:intoString: create an autoreleased string?
While using Instruments, it seems like there is a leak coming from this method (开发者_StackOverflow社区scanCharactersFromSet:intoString:
). I am not releasing the variable that gets put into intoString
Does this method create a retained or an autoreleased string in the intoString
part of the method?
According to the Memory Management Rules, you don’t own objects returned by reference. Therefore, you must not release them.
The leak must be elsewhere.
精彩评论