2

When I analyze my code it shows up a potential leak when I assign a Core Data String-attribute to a UILabel

cell.textLabel.text = prop.new_value;

Running the App with Instrument and Leaks doesn't show any problem.

Jenson
  • 33
  • 2

1 Answers1

3

The static analyzer understands certain cocoa conventions such as methods beginning with "new" returning a retained object pointer.

I would suggesting changing "new_value" in prop.new_value to something different.

Source: http://clang.llvm.org/docs/AutomaticReferenceCounting.html#objects.operands.retained_returns

Brandon A
  • 926
  • 7
  • 6