Differences From 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]
To Artifact [736d4bd7b9]:
- File src/OFBlock.m — part of check-in [b330936afe] at 2011-07-18 23:47:36 on branch trunk — Fix a bug (hopefully the last!) in blocks. (user: js, size: 12274) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
289 290 291 292 293 294 295 | alloc_failed_exception.isa = [OFAllocFailedException class]; @throw (OFAllocFailedException*) &alloc_failed_exception; } if (src->forwarding == src) | | | 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | alloc_failed_exception.isa = [OFAllocFailedException class]; @throw (OFAllocFailedException*) &alloc_failed_exception; } if (src->forwarding == src) (*dst)->forwarding = *dst; memcpy(*dst, src, src->size); if (src->size >= sizeof(of_block_byref_t)) src->byref_keep(*dst, src); } else *dst = src; |
︙ | ︙ |