Yoshi
Yoshi

Reputation: 163

UITextView memory leak

Can somebody can please verify that they can also reproduce that memory leak.

Create a new "Utility Application". Open the FlipsideView.xib and add a UITextview. Using the inspector, uncheck "Editable" and check "Detects Phone Number" and "Detects Links".

Run the app using the Leak instrument on an iPhone. Flip between the MainView and the FlipsideView a few times and observe the leak.

Thanks

I'm using 3.1.2

Upvotes: 0

Views: 634

Answers (2)

Brian Yarger
Brian Yarger

Reputation: 1975

Make sure you run Leaks against a real device, and not the simulator. I've found in the past that leaks were reported running my app against the simulator, but when I ran against a real device, those reported leaks went away.

Upvotes: 0

ahmet emrah
ahmet emrah

Reputation: 1858

Your leak seems to be somewhere else, i tried what you say and no leaks show up when im using 3.1.2 . However, i must add i did not connect the uitextview with IBOutlet as you did not mention it. If you are using

@property(nonatomic,retain) IBOutlet UITextView *....

it may cause a leak if you do not release your IBOutlet in dealloc.

Upvotes: 1

Related Questions