ObjFW  Check-in [989d2c3e36]

Overview
Comment:Fix missing return.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.5
Files: files | file ages | folders
SHA3-256: 989d2c3e360025e44b89563890df6794f862fb36217a172cd77f309ce6aaf5be
User & Date: js on 2011-07-14 22:56:17
Other Links: branch diff | manifest | tags
Context
2011-07-14
23:04
Always do nothing if OF_BLOCK_BYREF_CALLER is set. check-in: 0c5ed4d438 user: js tags: 0.5
22:56
Fix missing return. check-in: 989d2c3e36 user: js tags: 0.5
21:18
Allow passing NULL to _Block_object_assign() / _Block_object_dispose(). check-in: 7025192253 user: js tags: 0.5
Changes

Modified src/OFBlock.m from [9f99b09857] to [2087d2a41e].

221
222
223
224
225
226
227


228
229
230
231
232
233
234
	if ((--block->flags & OF_BLOCK_REFCOUNT_MASK) == 0) {
		assert(of_spinlock_unlock(&spinlocks[hash]));

		if (block->flags & OF_BLOCK_HAS_COPY_DISPOSE)
			block->descriptor->dispose_helper(block);

		free(block);


	}
	assert(of_spinlock_unlock(&spinlocks[hash]));
#endif
}

void
_Block_object_assign(void *dst_, const void *src_, const int flags_)







>
>







221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
	if ((--block->flags & OF_BLOCK_REFCOUNT_MASK) == 0) {
		assert(of_spinlock_unlock(&spinlocks[hash]));

		if (block->flags & OF_BLOCK_HAS_COPY_DISPOSE)
			block->descriptor->dispose_helper(block);

		free(block);

		return;
	}
	assert(of_spinlock_unlock(&spinlocks[hash]));
#endif
}

void
_Block_object_assign(void *dst_, const void *src_, const int flags_)