Differences From Artifact [91667fe0ee]:
- File
src/OFArray.m
— part of check-in
[e959fed010]
at
2009-04-26 12:44:20
on branch trunk
— A few renames in OFObject.
getMemWithSize: -> allocWithSize:
getMemForNItems:ofSize: -> allocNItems:withSize:
resizeMem:toNItems:ofSize: -> resizeMem:toNItems:withSize: (user: js, size: 4871) [annotate] [blame] [check-ins using]
To Artifact [5aad2dc149]:
- File
src/OFArray.m
— part of check-in
[e9d48d0beb]
at
2009-05-01 18:15:32
on branch trunk
— Call [super free] on error in init methods.
Reason is that - free might free stuff which is allocated during the
initialization, which might not be allocated when an error occurred. (user: js, size: 4872) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
38 39 40 41 42 43 44 | { Class c; self = [super init]; if (is == 0) { c = isa; | | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | { Class c; self = [super init]; if (is == 0) { c = isa; [super free]; @throw [OFInvalidArgumentException newWithClass: c]; } data = NULL; itemsize = is; items = 0; |
︙ | ︙ |