ios - Do I need to remove NSMutablearray objects before NULL/deleting NSMutablearray -


nsmutablearray *thisarray = [[nsmutablearray alloc] initwithobjects:@"one", @"two", @"three", nil]; 

do need delete objects before deleting thisarray?

thisarray = null; 

a nsarray/nsmutablearray keeps reference objects contains, , setting array null automatically releases references. don't have cycle through them release them manually.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -