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 02-09-2010, 12:24 PM   #1 (permalink)
mebarron
Registered Member
 
mebarron's Avatar
 
Join Date: Apr 2009
Location: Michigan
Posts: 47
Default Memory Management question about sample iPhone app code CoreDataBooks

I have a memory management question about sample iPhone app code from Apple, namely:
--------
CoreDataBooks:RootViewController.m

line 255 : // Release the adding managed object context.
line 256 : self.addingManagedObjectContext = nil;
--------

at line #256 the retainCount for addingManagedObjectContext == 1

shouldn't line #256 be the following:

[[self addingManagedObjectContext] release];

Otherwise there is a memory leak, Right?
mebarron is offline   Reply With Quote
 

» Advertisements
» Online Users: 353
22 members and 331 guests
ADY, apatsufas, BdR, catedawn, Duncan C, georg8betx, Graham, Gurpartap Singh, iDifferent, iph_s, joeallenpro, john love, jorge599, kampftrinker, MarkC, mer10, Naughty_Ottsel, RoryHarvey, sadr1an1, superg, syver
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,700
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

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