View Single Post
OFtrieNode recently started crashing on me. But only for PPC users or when I build on Snow Leopard and run on Leopard. This seems odd. I've tried building using various version os GCC but that doesn't seem to help.

OFTrieNode's dealloc method looks like this:

- (void)dealloc;
{
unsigned int childIndex;
NSZone *myZone;

myZone = [self zone];
for (childIndex = 0; childIndex < childCount; childIndex++)
[children[childIndex] release];
NSZoneFree(myZone, characters);
NSZoneFree(myZone, children);
[super dealloc];
}

It finally crashes on myZone = [self zone]; after about two thousand frames in the for loop. This makes we think there's a odd circular reference in the trie, but the fact that it works fine on most machines has me confused. Anyone have any ideas?

Thanks,

Ben