iphone - message sent to released object (never released manually) -


removed release statements. of them seemed okay, because other things exploding first.


- (void)handlenowplayingitemchanged:(id)notification {     mpmediaitem *item = self.musicplayer.nowplayingitem;     nsstring *title = [item valueforproperty:mpmediaitempropertytitle];      nsnumber *duration = [item                          valueforproperty:mpmediaitempropertyplaybackduration];     float totaltime = [duration floatvalue];     progressslider.maximumvalue = totaltime;      cgsize artworkimageviewsize = self.albumcover.bounds.size;     mpmediaitemartwork *artwork = [item valueforproperty:                                                    mpmediaitempropertyartwork];     if (artwork) {         self.albumcover.image = [artwork imagewithsize:artworkimageviewsize];     } else {         self.albumcover.image = nil;     }      titlelabel.text = title;      /*openears stuff*/ } 

in another question mention sqlite errors concerning artwork.

** deleted error , details concerning nszombieenabled alert of call released objects. **


well don't feel stupid. memory management.
put effort not leaking anything, in temporary solution, , yet did this...

in code provide not see calls retain, alloc/init, or variation of copy. means should not have calls release in method , cause of crash. make sure not on releasing in other methods , remember basics of memory management.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -