Cocoanetics/DTCoreText — Issue #115: Crash when building in Release
Author: gshaviv
Created: 2012-01-26 07:41:16+00:00
State: open

If you build in Release CoreText crashes. Build the DemoApp in release, I always get a crash in:
if ([elementName isEqualToString:currentTag.tagName])
{
DTHTMLElement *popChild = currentTag;
currentTag = currentTag.parent;
[currentTag removeChild:popChild];
}

Where currentTag becomes something else other than a DTHTMLElement and it crashes on the removeChild: being an unrecognized selector. So it appears to be a memory corruption.

In Debug it runs fine.