Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-23-2008, 10:59 AM   #10 (permalink)
PhoneyDeveloper
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

Does Leaks report this as a leak or just as memory that's in use? There's no memory leak, per se, in this code. It's what happens to the UIImage object after it's returned that determines whether a leak happens or not. Do you add the UIImage to an array or a dictionary or a UIImageView or anything like that? The db doesn't have anything directly to do with this. Can you tell if it's the CGImageRef itself or the buffer that it creates that's living on?

There's a possibility that the images are being cached by the framework intentionally.

You could try changing that line to

Code:
	UIImage*	result = [[[UIImage alloc] initWithCGImage:ref] autorelease];
and see if that makes any difference.
PhoneyDeveloper is offline   Reply With Quote
 

» Advertisements
» Online Users: 272
18 members and 254 guests
ADY, aikhan, AppAnnex, astalavista, chemistry, HemiMG, ilmman, MarkC, mer10, nicko, NSeven, padsoftware, Paul10, pavanindira, Promo Dispenser, Raffaello, timle8n1, touchcream
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,707
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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