Differences From Artifact [788fd6f59d]:
- File
src/OFString.m
— part of check-in
[f7576a66ce]
at
2012-06-06 13:47:52
on branch trunk
— Slightly change the memory management API.
Also fix a bug where OFBigDataArray would waste memory. (user: js, size: 45289) [annotate] [blame] [check-ins using] [more...]
To Artifact [3028812e1c]:
- File src/OFString.m — part of check-in [0d4059306a] at 2012-06-07 12:03:10 on branch trunk — Rework OFStream API. (user: js, size: 45283) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
828 829 830 831 832 833 834 | file = [[OFFile alloc] initWithPath: path mode: @"rb"]; @try { tmp = [self allocMemoryWithSize: (size_t)st.st_size]; | < | > | 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 | file = [[OFFile alloc] initWithPath: path mode: @"rb"]; @try { tmp = [self allocMemoryWithSize: (size_t)st.st_size]; [file readIntoBuffer: tmp exactLength: (size_t)st.st_size]; } @finally { [file release]; } } @catch (id e) { [self release]; @throw e; } |
︙ | ︙ |