ObjFW  Diff

Differences From Artifact [b78aed1909]:

To Artifact [197d311a2d]:


585
586
587
588
589
590
591
592
593



594
595
596
597
598
599
600
601
585
586
587
588
589
590
591


592
593
594

595
596
597
598
599
600
601







-
-
+
+
+
-







			isUTF8 = YES;
			break;
		case -1:;
			@throw [OFInvalidEncodingException newWithClass: isa];
		}

		if ((string = strdup(string)) == NULL)
			@throw [OFOutOfMemoryException newWithClass: isa
							       size: length +
			@throw [OFOutOfMemoryException
			     newWithClass: isa
			    requestedSize: length + 1];
								     1];

		@try {
			[self addMemoryToPool: string];
		} @catch (id e) {
			free(string);
			@throw e;
		}