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 07-04-2009, 10:56 AM   #3 (permalink)
FlyingDiver
Former NeXTStep Developer
 
Join Date: Mar 2009
Posts: 997
Default

buttonWithType returns an auto-released object. Since you didn't alloc that object, you should not be trying to release it. You can get rid of both the retain on that line, and the release later in your code.

joe
FlyingDiver is offline   Reply With Quote
 

» Advertisements
» Online Users: 760
19 members and 741 guests
ADY, AppleSteve, betterlee, blueskysinger, ckgni, clovisbear, Domele, femenina, Floras2324, hasinthajanaka, ilmman, jkigel, JohniARivera, KarlJay, NoGameJoe, prerna chavan, saqibjaan, suresk, zom888
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,621
Threads: 89,141
Posts: 380,328
Top Poster: BrianSlick (7,110)
Welcome to our newest member, Floras2324
Powered by vBadvanced CMPS v3.1.0

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