ObjFW  Diff

Differences From Artifact [ddafe5133c]:

To Artifact [67c5a15992]:


276
277
278
279
280
281
282
283
284

285
286
287
288
289
290
291
292
293
294
295
276
277
278
279
280
281
282


283




284
285
286
287
288
289
290







-
-
+
-
-
-
-








	if (![parser finishedParsing])
		@throw [OFMalformedXMLException newWithClass: c
						      parser: parser];

	self = [delegate->element retain];

	@try {
		[pool release];
	[pool release];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- initWithFile: (OFString*)path
{
	OFAutoreleasePool *pool;
315
316
317
318
319
320
321
322
323

324
325
326
327
328
329
330
331
332
333
334
310
311
312
313
314
315
316


317




318
319
320
321
322
323
324







-
-
+
-
-
-
-








	if (![parser finishedParsing])
		@throw [OFMalformedXMLException newWithClass: c
						      parser: parser];

	self = [delegate->element retain];

	@try {
		[pool release];
	[pool release];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- initWithSerialization: (OFXMLElement*)element
{
	self = [super init];
423
424
425
426
427
428
429
430
431
432

433
434
435
436
437
438
439
440
441
442
443
444
413
414
415
416
417
418
419



420





421
422
423
424
425
426
427







-
-
-
+
-
-
-
-
-







{
	return [[attributes copy] autorelease];
}

- (void)setChildren: (OFArray*)children_
{
	OFMutableArray *new = [children_ mutableCopy];

	@try {
		[children release];
	[children release];
	} @catch (id e) {
		[new release];
		@throw e;
	}

	children = new;
}

- (OFArray*)children
{
	return [[children copy] autorelease];
}