Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Tex-Twil

macrumors 68030
Original poster
May 28, 2008
2,501
15
Berlin
Hi,
I just started with mac/iPhone development and I wrote my 1st dummy hello word app for the iPhone. I was playing around with Instruments and I wanted to test if it will detect a memory leak. I added a button to my app which executes this when pressed:

Code:
void p* = malloc(1024000);
p=nil;

When I run the app in Instruments, I can see the memory usage jump up when I hit the button but shouldn't I see some warnings saying that the memory is actually leaking ?

Thanks for your help,
Tex
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.