TouchCode/TouchXML — Issue #11: [CXMLNode dealloc] EXC_BAD_ACCESS
Author: runmad
Created: 2011-10-14 14:59:21+00:00
State: open

I just switched over to ARC and I am on the feature/ARC branch. I receive an EXC_BAD_ACCESS once I am done parsing. The parsing happens inside an @autoreleasepool.

- (void)dealloc
{
if (_node)
{
if (_node->_private == (__bridge void *)self) // ** EXC_BAD_ACCESS **
_node->_private = NULL;

if (_freeNodeOnRelease)
{
xmlFreeNode(_node);
}

_node = NULL;
}
//
}