306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
|
items = OFResizeMemory(items, count + length, 1);
memcpy(items + count, buffer, length);
count += length;
}
objc_autoreleasePoolPop(pool);
} @catch (id e) {
OFFreeMemory(buffer);
OFFreeMemory(items);
[self release];
@throw e;
}
@try {
self = [self initWithItemsNoCopy: items
count: count
freeWhenDone: true];
} @catch (id e) {
|
<
>
>
|
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
|
items = OFResizeMemory(items, count + length, 1);
memcpy(items + count, buffer, length);
count += length;
}
objc_autoreleasePoolPop(pool);
} @catch (id e) {
OFFreeMemory(items);
[self release];
@throw e;
} @finally {
OFFreeMemory(buffer);
}
@try {
self = [self initWithItemsNoCopy: items
count: count
freeWhenDone: true];
} @catch (id e) {
|