Differences From Artifact [9e3650faaf]:
- File
src/OFXMLElement.m
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 28103) [annotate] [blame] [check-ins using]
To Artifact [1474c4b15e]:
- File src/OFXMLElement.m — part of check-in [96c3df8f67] at 2011-09-28 00:05:27 on branch trunk — Add OFXMLNode as a common base class for OFXMLElement & OFXMLAttribute. (user: js, size: 27739) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
495 496 497 498 499 500 501 | [ret makeImmutable]; [pool release]; return ret; } | < < < < < < < < < < < < < < < < < < < < | 495 496 497 498 499 500 501 502 503 504 505 506 507 508 | [ret makeImmutable]; [pool release]; return ret; } - (OFString*)_XMLStringWithParent: (OFXMLElement*)parent namespaces: (OFDictionary*)allNamespaces indentation: (unsigned int)indentation level: (size_t)level { OFAutoreleasePool *pool, *pool2; char *cString; |
︙ | ︙ | |||
798 799 800 801 802 803 804 | { return [self _XMLStringWithParent: nil namespaces: nil indentation: indentation level: 0]; } | < < < < < | 778 779 780 781 782 783 784 785 786 787 788 789 790 791 | { return [self _XMLStringWithParent: nil namespaces: nil indentation: indentation level: 0]; } - (OFXMLElement*)XMLElementBySerializing { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFXMLElement *element; element = [OFXMLElement elementWithName: [self className] namespace: OF_SERIALIZATION_NS]; |
︙ | ︙ |