0

While using Instruments, it seems like there is a leak coming from this method (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?

Alex
  • 7,432
  • 20
  • 75
  • 118

1 Answers1

1

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.

albertamg
  • 28,492
  • 6
  • 64
  • 71