Differences From Artifact [b9b5eda4af]:
- File src/OFBlock.m — part of check-in [66be98f1d1] at 2011-07-14 23:06:11 on branch 0.5 — Fix reference counting for blocks. (user: js, size: 11583) [annotate] [blame] [check-ins using]
To Artifact [52c8c831cc]:
- File
src/OFBlock.m
— part of check-in
[7caa622124]
at
2011-07-18 03:01:36
on branch 0.5
— Fix reference counting for blocks.
Hopefully, there is no weird situation left where it fails... (user: js, size: 11547) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
264 265 266 267 268 269 270 | } if (src->forwarding == src) src->forwarding = *dst; memcpy(*dst, src, src->size); | < < < | 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | } if (src->forwarding == src) src->forwarding = *dst; memcpy(*dst, src, src->size); if (src->size >= sizeof(of_block_byref_t)) src->byref_keep(*dst, src); } else *dst = src; (*dst)->flags++; break; |
︙ | ︙ | |||
437 438 439 440 441 442 443 | OF_BLOCK_REFCOUNT_MASK; return OF_RETAIN_COUNT_MAX; } - (void)release { | > | | 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 | OF_BLOCK_REFCOUNT_MASK; return OF_RETAIN_COUNT_MAX; } - (void)release { if (isa == (Class)&_NSConcreteMallocBlock) Block_release(self); } - (void)dealloc { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; [super dealloc]; /* Get rid of a stupid warning */ |
︙ | ︙ |