ObjFW  Check-in [36d7c17c98]

Overview
Comment:OFOptionsParser: Fix wrong deallocation order
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 36d7c17c9851a5d3a6a28e9cf40d477803e183cd7f849cb3e71963c0eb224910
User & Date: js on 2020-11-29 06:11:06
Other Links: manifest | tags
Context
2020-11-29
06:40
OFSelectKernelEventObserver: _maxFD = -1 on Amiga check-in: f078f529d8 user: js tags: trunk
06:11
OFOptionsParser: Fix wrong deallocation order check-in: 36d7c17c98 user: js tags: trunk
04:02
OFSelectKernelEventObserver: Move FD_ZERO check-in: 4504bd4141 user: js tags: trunk
Changes

Modified src/OFOptionsParser.m from [a5d08e3dd3] to [f95cee8e97].

138
139
140
141
142
143
144

145




146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
138
139
140
141
142
143
144
145

146
147
148
149
150
151
152
153






154
155
156
157
158
159
160







+
-
+
+
+
+




-
-
-
-
-
-







	}

	return self;
}

- (void)dealloc
{
	if (_options != NULL)
	of_options_parser_option_t *iter;
		for (of_options_parser_option_t *iter = _options;
		    iter->shortOption != '\0' || iter->longOption != nil;
		    iter++)
			[iter->longOption release];

	free(_options);
	[_longOptions release];

	if (_options != NULL)
		for (iter = _options;
		    iter->shortOption != '\0' || iter->longOption != nil;
		    iter++)
			[iter->longOption release];

	[_arguments release];
	[_argument release];

	[super dealloc];
}

- (of_unichar_t)nextOption