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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 04-23-2009, 01:44 PM   #14 (permalink)
johnqh
Registered Member
 
Join Date: Nov 2008
Posts: 812
johnqh is on a distinguished road
Default

A little more explanation.

Your "copy" property of NSMutableArray won't add reference count to the objects in the array.

Those UIImage are created with autorelease. Their reference count +1 when you add them to the array, but when you removeAllObjects (or the array release), their reference count -1. And then, at the end of autorelease pool, they are dealloc'd.

Which means your animationImages array contains pointers which are invalid.
johnqh is offline   Reply With Quote
 

» Advertisements
» Online Users: 444
19 members and 425 guests
apatsufas, bdavid186, BumChinBooth, ChrisYates, desbrina, falco1973, iLearnColors, LegionMD, Lisafleu, LunarMoon, milanalina, PavelMik, pipposanta, Robemtims, solie, themartist, Wikiboo, ziocleto, zzeze
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,621
Threads: 94,087
Posts: 402,801
Top Poster: BrianSlick (7,990)
Welcome to our newest member, solie
Powered by vBadvanced CMPS v3.1.0

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