ObjFW  Check-in [bd7dbccb8b]

Overview
Comment:Fix missing retain in -[OFArray initWithObject:argList:].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.5
Files: files | file ages | folders
SHA3-256: bd7dbccb8bb78ec20d418c2db673e67b9c1743165bec6844860bfbabf512ba69
User & Date: js on 2011-05-08 23:25:49
Other Links: branch diff | manifest | tags
Context
2011-05-12
19:47
Also set finishedParsing if the root element is in short form. check-in: 05c29433ac user: js tags: 0.5
2011-05-08
23:25
Fix missing retain in -[OFArray initWithObject:argList:]. check-in: bd7dbccb8b user: js tags: 0.5
2011-05-01
23:42
Fix a possible out-of-bounds read in -[OFString unicodeString]. check-in: 4a9e45c2ad user: js tags: 0.5
Changes

Modified src/OFArray.m from [57851d31d6] to [39f6c9eb94].

111
112
113
114
115
116
117


118
119
120
121
122
123
124
{
	self = [self init];

	@try {
		id obj;

		[array addItem: &first];


		while ((obj = va_arg(args, id)) != nil) {
			[array addItem: &obj];
			[obj retain];
		}
	} @catch (id e) {
		[self release];
		@throw e;







>
>







111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
	self = [self init];

	@try {
		id obj;

		[array addItem: &first];
		[first retain];

		while ((obj = va_arg(args, id)) != nil) {
			[array addItem: &obj];
			[obj retain];
		}
	} @catch (id e) {
		[self release];
		@throw e;