ObjFW  Check-in [679bce8526]

Overview
Comment:Fix a bug in OFDictionary's -[initWithDictionary:].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 679bce8526cb91dbf9c4cf0a89cb7e83921d2d0e3f712a8672517183accf7624
User & Date: js on 2009-11-13 23:17:09
Other Links: manifest | tags
Context
2009-11-13
23:18
Implement -[isEqual:] and -[hash] for OFDictionary. check-in: 2555952c42 user: js tags: trunk
23:17
Fix a bug in OFDictionary's -[initWithDictionary:]. check-in: 679bce8526 user: js tags: trunk
21:07
Fix yet another FIXME. check-in: d3d1f36316 user: js tags: trunk
Changes

Modified src/OFDictionary.m from [331787d6d4] to [88ba6224ae].

108
109
110
111
112
113
114

115

116
117
118
119
120
121
122
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124







+

+







		 * We can't use [super dealloc] on OS X here. Compiler bug?
		 * Anyway, we didn't do anything yet anyway, so [self dealloc]
		 * works.
		 */
		[self dealloc];
		@throw e;
	}

	size = dict->size;
	count = dict->count;

	for (i = 0; i < size; i++) {
		if (dict->data[i].key != nil) {
			data[i].key = [dict->data[i].key copy];
			data[i].object = [dict->data[i].object retain];
			data[i].hash = dict->data[i].hash;
		} else