ObjFW  Check-in [86169923d6]

Overview
Comment:Fix a bug (hopefully the last!) in blocks.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.5
Files: files | file ages | folders
SHA3-256: 86169923d678ff1667539de745dd3850bc43fe565364ea3f0d62da2463bdaa2e
User & Date: js on 2011-07-18 23:47:36
Other Links: branch diff | manifest | tags
Context
2011-08-03
16:25
Fix a few OFString tests. check-in: 2b9408a2a5 user: js tags: 0.5
2011-07-18
23:47
Fix a bug (hopefully the last!) in blocks. check-in: 86169923d6 user: js tags: 0.5
03:01
Fix reference counting for blocks. check-in: 7caa622124 user: js tags: 0.5
Changes

Modified src/OFBlock.m from [52c8c831cc] to [7216dff99f].

260
261
262
263
264
265
266
267

268
269
270
271
272
273
274
260
261
262
263
264
265
266

267
268
269
270
271
272
273
274







-
+







				alloc_failed_exception.isa =
				    [OFAllocFailedException class];
				@throw (OFAllocFailedException*)
				    &alloc_failed_exception;
			}

			if (src->forwarding == src)
				src->forwarding = *dst;
				(*dst)->forwarding = *dst;

			memcpy(*dst, src, src->size);

			if (src->size >= sizeof(of_block_byref_t))
				src->byref_keep(*dst, src);
		} else
			*dst = src;