Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Memory leak
View Single Post
Old 12-20-2008, 09:17 AM   #4 (permalink)
exorcyze
Registered Member
 
Join Date: Dec 2008
Posts: 495
Default

I wish I had the answer to your question, but I'm a bit curious what's amiss too as it looks ok to me - in general my understanding is you only release objects you "own", which happens when you alloc, retain or copy. You seem to have those bases covered, and convenience constructors should autorelease afaik.

However, I did notice that you were creating an NSString inside your log statement. NSLog does a stringWithFormat on it's own so you could shorten that log statement to be:
Code:
NSLog( @"retainCount of myUrl: %i",[myUrl retainCount] );
Good luck with the leak!
exorcyze is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,243
Threads: 39,019
Posts: 171,144
Top Poster: smasher (2,570)
Welcome to our newest member, iWalter
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:13 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.