ObjFW  Check-in [441e5ec29b]

Overview
Comment:Fix wrong free in OFString. Should be [self freeMem:].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 441e5ec29b9b2d197380a9a820afa714d00c0f7cc3c738b51b0c074dcbc0f64c
User & Date: js on 2009-05-03 14:20:49
Other Links: manifest | tags
Context
2009-05-03
14:48
Don't throw an OFNoMemException in - freeMem:. It won't help anyway. check-in: 042a74a6e6 user: js tags: trunk
14:20
Fix wrong free in OFString. Should be [self freeMem:]. check-in: 441e5ec29b user: js tags: trunk
2009-05-02
15:33
Nicer way to create and initialize the socket in - accept. check-in: bdfd9d0464 user: js tags: trunk
Changes

Modified src/OFString.m from [3003617042] to [b1e5dbc875].

253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
}

- setTo: (const char*)str
{
	size_t len;

	if (string != NULL)
		free(string);

	len = strlen(str);

	switch (check_utf8(str, len)) {
	case 1:
		is_utf8 = YES;
		break;







|







253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
}

- setTo: (const char*)str
{
	size_t len;

	if (string != NULL)
		[self freeMem: string];

	len = strlen(str);

	switch (check_utf8(str, len)) {
	case 1:
		is_utf8 = YES;
		break;