Differences From Artifact [11a7d709fa]:
- File src/OFSet_hashtable.m — part of check-in [8c8e90bd66] at 2011-09-10 16:07:06 on branch trunk — Fix a forgotten comment. (user: js, size: 4689) [annotate] [blame] [check-ins using]
To Artifact [3a56324a72]:
- File
src/OFSet_hashtable.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: 4698) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
136 137 138 139 140 141 142 | OFXMLElement *child; pool = [[OFAutoreleasePool alloc] init]; if ((![[element name] isEqual: @"OFSet"] && ![[element name] isEqual: @"OFMutableSet"]) || ![[element namespace] isEqual: OF_SERIALIZATION_NS]) | | > | | 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | OFXMLElement *child; pool = [[OFAutoreleasePool alloc] init]; if ((![[element name] isEqual: @"OFSet"] && ![[element name] isEqual: @"OFMutableSet"]) || ![[element namespace] isEqual: OF_SERIALIZATION_NS]) @throw [OFInvalidArgumentException exceptionWithClass: isa selector: _cmd]; one = [OFNumber numberWithSize: 1]; enumerator = [[element children] objectEnumerator]; pool2 = [[OFAutoreleasePool alloc] init]; while ((child = [enumerator nextObject]) != nil) { |
︙ | ︙ |