ObjFW  Diff

Differences From Artifact [8c5b52d99d]:

To Artifact [3003617042]:


164
165
166
167
168
169
170





171

172
173
174
175
176
177
178
164
165
166
167
168
169
170
171
172
173
174
175

176
177
178
179
180
181
182
183







+
+
+
+
+
-
+







				@throw [OFInvalidEncodingException
					newWithClass: c];
		}

		@try {
			string = [self allocWithSize: length + 1];
		} @catch (OFException *e) {
			/*
			 * We can't use [super free] on OS X here. Compiler bug?
			 * [self free] will do here as we don't reimplement
			 * free.
			 */
			[super free];
			[self free];
			@throw e;
		}
		memcpy(string, str, length + 1);
	}

	return self;
}