tags:

views:

200

answers:

3

Hi,

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

+1  A: 

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.

ahmet emrah
Thanks for checking. I didn't connect it. I didn't add any code at all. I just did what I described.
Yoshi
A: 

Can somebody else verify please?

The leak seems cause by [NSThread start] that don't free its malloc. You should be able to reproduce it by following the steps in my first post (UITextView use a NSOperation that triggers a NSThread).

How can I report the leak to Apple?

Thanks again!

Yoshi
A: 

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.

Brian Yarger
Actually, the leak is only present when I run it on my device.
Yoshi