开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜