ObjFW  Check-in [bba061e4b7]

Overview
Comment:Create a pool for -[applicationDidFinishLaunching]

Before, when the application would exit after
-[applicationDidFinishLaunching], this was unnecessary. But now, without
this change, temporary objects might be kept alive while the run loop is
active.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bba061e4b7af4642199ae917703803719b7a7c453143ab48af045346e6633f0a
User & Date: js on 2012-09-14 05:24:27
Other Links: manifest | tags
Context
2012-09-14
05:36
OFRunLoop: Remove the key for the stream. check-in: 13eb2bf77b user: js tags: trunk
05:24
Create a pool for -[applicationDidFinishLaunching] check-in: bba061e4b7 user: js tags: trunk
05:20
Implement async reading (into buffers and lines). check-in: a2b309b38a user: js tags: trunk
Changes

Modified src/OFApplication.m from [a2406ebb91] to [c50e9dd27b].

292
293
294
295
296
297
298

299
300
301
302
303
304

305

306
307
308
309
310
311
312
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315







+






+

+







	REGISTER_SIGNAL(SIGUSR2)
#endif
#undef REGISTER_SIGNAL
}

- (void)run
{
	void *pool;
	OFRunLoop *runLoop;

	[OFThread _createMainThread];
	runLoop = [[[OFRunLoop alloc] init] autorelease];
	[OFRunLoop _setMainRunLoop: runLoop];

	pool = objc_autoreleasePoolPush();
	[delegate applicationDidFinishLaunching];
	objc_autoreleasePoolPop(pool);

	[runLoop run];
}

- (void)terminate
{
	exit(0);