views:

68

answers:

1

Hi guys, I am getting leak at:

NSString *searchText = [aSearchBar.text 
    stringByTrimmingCharactersInSet:[NSCharacterSet 
    whitespaceAndNewlineCharacterSet]];

Can anyone suggest how to get out of this memory leak.

+1  A: 

That one line isn't leaking anything. If you do have a leak, it's somewhere else in your code.

Kevin Ballard