Differences From Artifact [ff454a2522]:
- File src/OFBlock.m — part of check-in [5b3aebb65a] at 2011-07-14 23:06:11 on branch trunk — Fix reference counting for blocks. (user: js, size: 12307) [annotate] [blame] [check-ins using]
To Artifact [0147efccdf]:
- File
src/OFBlock.m
— part of check-in
[dbd79d0747]
at
2011-07-18 03:01:36
on branch trunk
— Fix reference counting for blocks.
Hopefully, there is no weird situation left where it fails... (user: js, size: 12271) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
293 294 295 296 297 298 299 | } if (src->forwarding == src) src->forwarding = *dst; memcpy(*dst, src, src->size); | < < < | 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | } 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; |
︙ | ︙ | |||
466 467 468 469 470 471 472 | OF_BLOCK_REFCOUNT_MASK; return OF_RETAIN_COUNT_MAX; } - (void)release { | > | | 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 | 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 */ |
︙ | ︙ |