ObjFW  Diff

Differences From Artifact [db633d72e6]:

To Artifact [8c5b52d99d]:


164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
				@throw [OFInvalidEncodingException
					newWithClass: c];
		}

		@try {
			string = [self allocWithSize: length + 1];
		} @catch (OFException *e) {
			[self free];
			@throw e;
		}
		memcpy(string, str, length + 1);
	}

	return self;
}







|







164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
				@throw [OFInvalidEncodingException
					newWithClass: c];
		}

		@try {
			string = [self allocWithSize: length + 1];
		} @catch (OFException *e) {
			[super free];
			@throw e;
		}
		memcpy(string, str, length + 1);
	}

	return self;
}