I got a segfault 11 memory access error in the iOS simulator, but it disappears when I comment on the release in the code below.
// get get the question number NSString *text = [attributeDict valueForKey:XML_TAG_QUESTION_ATTRIBUTE_NUMBER]; question.number = [text intValue]; //[text release]; <==== no more segfault 11 when this is commented out.
My question is, since I get the NS String instance returned by the NSXMLParser implementation, the number of links is not increasing, and I should not release it?
memory-management ios
Jack BeNimble Feb 25 2018-11-21T00: 00Z
source share