ObjFW  Diff

Differences From Artifact [078edcac44]:

To Artifact [0596555fcb]:


137
138
139
140
141
142
143
144

145

146
147
148
149
150

151
152
153
154
155
156
157
137
138
139
140
141
142
143

144
145
146
147
148
149
150

151
152
153
154
155
156
157
158







-
+

+




-
+







		if (i >= last)
			@throw [OFOutOfRangeException newWithClass: isa];

		b = [self allocMemoryWithSize: sizeof(BUCKET)];

		@try {
			key = [key copy];
		} @catch (OFException *e) {
		} @catch (id e) {
			[self freeMemory: b];
			@throw e;
		}

		@try {
			[obj retain];
		} @catch (OFException *e) {
		} @catch (id e) {
			[self freeMemory: b];
			[(id)key release];
			@throw e;
		}

		b->key = key;
		b->object = obj;